Skip to content

Commit 4f1d80e

Browse files
authored
Merge pull request #538 from DefactoSoftware/jurre/fix-specs
Fix feature specs
2 parents d6ded37 + 9bacc31 commit 4f1d80e

4 files changed

Lines changed: 19 additions & 11 deletions

File tree

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
dist: trusty
12
rvm:
23
- 2.4.2
34
bundler_args: "--without debug development"
45
cache: bundler
6+
services:
7+
- postgresql
58
before_script:
69
- cp .sample.env .env
710
- export SECRET_KEY_BASE="$(bundle exec rake secret)"
811
- cp config/database.travis.yml config/database.yml
912
- psql -c 'create database hours_test' -U postgres
10-
- export DISPLAY=:99.0
11-
- sh -e /etc/init.d/xvfb start
13+
- "export DISPLAY=:99.0"
14+
- "sh -e /etc/init.d/xvfb start"
15+
- sleep 3 # give xvfb some time to start

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ group :development, :test do
7373
end
7474

7575
group :test do
76-
gem 'capybara', '~> 3.16', '>= 3.16.1'
76+
gem 'capybara'
7777
gem "database_cleaner"
7878
gem "launchy"
7979
gem "shoulda-matchers", "~> 2.7.0"

Gemfile.lock

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ GEM
3636
minitest (~> 5.1)
3737
thread_safe (~> 0.3, >= 0.3.4)
3838
tzinfo (~> 1.1)
39-
addressable (2.3.6)
39+
addressable (2.7.0)
40+
public_suffix (>= 2.0.2, < 5.0)
4041
airbrake (8.1.2)
4142
airbrake-ruby (~> 3.2)
4243
airbrake-ruby (3.2.4)
@@ -615,13 +616,13 @@ GEM
615616
slim (>= 1.3.6, < 4.0)
616617
terminal-table (~> 1.4)
617618
builder (3.2.3)
618-
capybara (3.16.1)
619+
capybara (3.30.0)
619620
addressable
620621
mini_mime (>= 0.1.3)
621622
nokogiri (~> 1.8)
622623
rack (>= 1.6.0)
623624
rack-test (>= 0.6.3)
624-
regexp_parser (~> 1.2)
625+
regexp_parser (~> 1.5)
625626
xpath (~> 3.2)
626627
climate_control (0.2.0)
627628
coderay (1.1.2)
@@ -727,7 +728,7 @@ GEM
727728
mime-types-data (~> 3.2015)
728729
mime-types-data (3.2018.0812)
729730
mimemagic (0.3.2)
730-
mini_mime (1.0.1)
731+
mini_mime (1.0.2)
731732
mini_portile2 (2.4.0)
732733
minitest (5.11.3)
733734
momentjs-rails (2.7.0)
@@ -737,7 +738,7 @@ GEM
737738
bourbon (>= 3.1)
738739
sass (~> 3.2.19)
739740
newrelic_rpm (3.9.0.229)
740-
nokogiri (1.10.3)
741+
nokogiri (1.10.7)
741742
mini_portile2 (~> 2.4.0)
742743
normalize-rails (4.1.1)
743744
orm_adapter (0.5.0)
@@ -756,7 +757,8 @@ GEM
756757
slop (~> 3.4)
757758
pry-rails (0.3.2)
758759
pry (>= 0.9.10)
759-
rack (1.6.11)
760+
public_suffix (4.0.3)
761+
rack (1.6.12)
760762
rack-test (0.6.3)
761763
rack (>= 1.0)
762764
rack-timeout (0.0.4)
@@ -798,7 +800,7 @@ GEM
798800
recipient_interceptor (0.1.2)
799801
mail
800802
redcarpet (3.4.0)
801-
regexp_parser (1.4.0)
803+
regexp_parser (1.6.0)
802804
responders (2.4.0)
803805
actionpack (>= 4.2.0, < 5.3)
804806
railties (>= 4.2.0, < 5.3)
@@ -905,7 +907,7 @@ DEPENDENCIES
905907
bitters
906908
bourbon
907909
brakeman
908-
capybara (~> 3.16, >= 3.16.1)
910+
capybara
909911
coffee-rails
910912
dalli
911913
database_cleaner

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ module Features
4040
config.include Paperclip::Shoulda::Matchers
4141
config.include ActionDispatch::TestProcess
4242

43+
config.expose_dsl_globally = true
44+
4345
config.after(:each) do
4446
Apartment::Tenant.reset
4547
drop_schemas

0 commit comments

Comments
 (0)