Improve out-of-box experience with System tests including chromedriver-helper by default
This commit is contained in:
parent
cd92d2e57d
commit
62a38d8407
@ -43,6 +43,8 @@ group :development, :test do
|
|||||||
# Adds support for Capybara system testing and selenium driver
|
# Adds support for Capybara system testing and selenium driver
|
||||||
gem 'capybara', '~> 2.15'
|
gem 'capybara', '~> 2.15'
|
||||||
gem 'selenium-webdriver'
|
gem 'selenium-webdriver'
|
||||||
|
# Easy installation and use of chromedriver to run system tests with Chrome
|
||||||
|
gem 'chromedriver-helper'
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -412,6 +412,7 @@ def test_generator_if_skip_test_is_given
|
|||||||
assert_file "Gemfile" do |content|
|
assert_file "Gemfile" do |content|
|
||||||
assert_no_match(/capybara/, content)
|
assert_no_match(/capybara/, content)
|
||||||
assert_no_match(/selenium-webdriver/, content)
|
assert_no_match(/selenium-webdriver/, content)
|
||||||
|
assert_no_match(/chromedriver-helper/, content)
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_no_directory("test")
|
assert_no_directory("test")
|
||||||
@ -422,6 +423,7 @@ def test_generator_if_skip_system_test_is_given
|
|||||||
assert_file "Gemfile" do |content|
|
assert_file "Gemfile" do |content|
|
||||||
assert_no_match(/capybara/, content)
|
assert_no_match(/capybara/, content)
|
||||||
assert_no_match(/selenium-webdriver/, content)
|
assert_no_match(/selenium-webdriver/, content)
|
||||||
|
assert_no_match(/chromedriver-helper/, content)
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_directory("test")
|
assert_directory("test")
|
||||||
|
Loading…
Reference in New Issue
Block a user