Commit d656cb74f7e1becdb6ed686a7d36da48ab521030
1 parent
d4059ac9
Exists in
master
and in
4 other branches
Headless gem added
Showing
4 changed files
with
14 additions
and
0 deletions
Show diff stats
Gemfile
Gemfile.lock
... | ... | @@ -186,6 +186,7 @@ GEM |
186 | 186 | railties (~> 3.0) |
187 | 187 | hashery (1.4.0) |
188 | 188 | hashie (1.2.0) |
189 | + headless (0.3.1) | |
189 | 190 | hike (1.2.1) |
190 | 191 | httparty (0.8.3) |
191 | 192 | multi_json (~> 1.0) |
... | ... | @@ -398,6 +399,7 @@ DEPENDENCIES |
398 | 399 | grape (~> 0.2.1) |
399 | 400 | grit! |
400 | 401 | haml-rails |
402 | + headless | |
401 | 403 | httparty |
402 | 404 | jquery-rails (= 2.0.2) |
403 | 405 | jquery-ui-rails (= 0.5.0) | ... | ... |
features/support/env.rb
spec/spec_helper.rb
... | ... | @@ -12,6 +12,7 @@ require 'webmock/rspec' |
12 | 12 | require 'factories' |
13 | 13 | require 'monkeypatch' |
14 | 14 | require 'email_spec' |
15 | +require 'headless' | |
15 | 16 | |
16 | 17 | # Requires supporting ruby files with custom matchers and macros, etc, |
17 | 18 | # in spec/support/ and its subdirectories. |
... | ... | @@ -30,6 +31,11 @@ RSpec.configure do |config| |
30 | 31 | # instead of true. |
31 | 32 | config.use_transactional_fixtures = false |
32 | 33 | |
34 | + config.before :all do | |
35 | + headless = Headless.new | |
36 | + headless.start | |
37 | + end | |
38 | + | |
33 | 39 | config.before :each, type: :integration do |
34 | 40 | DeviseSessionMock.disable |
35 | 41 | end | ... | ... |