Headless gem added
This commit is contained in:
parent
d4059ac966
commit
d656cb74f7
4 changed files with 14 additions and 0 deletions
1
Gemfile
1
Gemfile
|
@ -101,6 +101,7 @@ group :development, :test do
|
||||||
gem "rspec-rails"
|
gem "rspec-rails"
|
||||||
gem "capybara"
|
gem "capybara"
|
||||||
gem "capybara-webkit"
|
gem "capybara-webkit"
|
||||||
|
gem "headless"
|
||||||
gem "autotest"
|
gem "autotest"
|
||||||
gem "autotest-rails"
|
gem "autotest-rails"
|
||||||
gem "pry"
|
gem "pry"
|
||||||
|
|
|
@ -186,6 +186,7 @@ GEM
|
||||||
railties (~> 3.0)
|
railties (~> 3.0)
|
||||||
hashery (1.4.0)
|
hashery (1.4.0)
|
||||||
hashie (1.2.0)
|
hashie (1.2.0)
|
||||||
|
headless (0.3.1)
|
||||||
hike (1.2.1)
|
hike (1.2.1)
|
||||||
httparty (0.8.3)
|
httparty (0.8.3)
|
||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
|
@ -398,6 +399,7 @@ DEPENDENCIES
|
||||||
grape (~> 0.2.1)
|
grape (~> 0.2.1)
|
||||||
grit!
|
grit!
|
||||||
haml-rails
|
haml-rails
|
||||||
|
headless
|
||||||
httparty
|
httparty
|
||||||
jquery-rails (= 2.0.2)
|
jquery-rails (= 2.0.2)
|
||||||
jquery-ui-rails (= 0.5.0)
|
jquery-ui-rails (= 0.5.0)
|
||||||
|
|
|
@ -39,3 +39,8 @@ rescue NameError
|
||||||
end
|
end
|
||||||
|
|
||||||
Cucumber::Rails::Database.javascript_strategy = :truncation
|
Cucumber::Rails::Database.javascript_strategy = :truncation
|
||||||
|
|
||||||
|
require 'headless'
|
||||||
|
|
||||||
|
headless = Headless.new
|
||||||
|
headless.start
|
||||||
|
|
|
@ -12,6 +12,7 @@ require 'webmock/rspec'
|
||||||
require 'factories'
|
require 'factories'
|
||||||
require 'monkeypatch'
|
require 'monkeypatch'
|
||||||
require 'email_spec'
|
require 'email_spec'
|
||||||
|
require 'headless'
|
||||||
|
|
||||||
# Requires supporting ruby files with custom matchers and macros, etc,
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
||||||
# in spec/support/ and its subdirectories.
|
# in spec/support/ and its subdirectories.
|
||||||
|
@ -30,6 +31,11 @@ RSpec.configure do |config|
|
||||||
# instead of true.
|
# instead of true.
|
||||||
config.use_transactional_fixtures = false
|
config.use_transactional_fixtures = false
|
||||||
|
|
||||||
|
config.before :all do
|
||||||
|
headless = Headless.new
|
||||||
|
headless.start
|
||||||
|
end
|
||||||
|
|
||||||
config.before :each, type: :integration do
|
config.before :each, type: :integration do
|
||||||
DeviseSessionMock.disable
|
DeviseSessionMock.disable
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue