File tree Expand file tree Collapse file tree 3 files changed +12
-17
lines changed Expand file tree Collapse file tree 3 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 25
25
atomic (1.1.14 )
26
26
attr_required (0.0.5 )
27
27
builder (3.2.2 )
28
- capybara (1.1.2 )
28
+ capybara (2.2.0 )
29
29
mime-types (>= 1.16 )
30
30
nokogiri (>= 1.3.3 )
31
31
rack (>= 1.0.0 )
32
32
rack-test (>= 0.5.4 )
33
- selenium-webdriver (~> 2.0 )
34
- xpath (~> 0.1.4 )
33
+ xpath (~> 2.0 )
35
34
childprocess (0.3.9 )
36
35
ffi (~> 1.0 , >= 1.0.11 )
37
36
crack (0.4.1 )
50
49
httpclient (2.3.4.1 )
51
50
i18n (0.6.5 )
52
51
json (1.8.1 )
53
- libwebsocket (0.1.3 )
54
- addressable
55
- mime-types (1.18 )
52
+ mime-types (2.0 )
56
53
mini_portile (0.5.2 )
57
54
minitest (4.7.5 )
58
55
multi_json (1.8.2 )
80
77
rspec-expectations (2.14.4 )
81
78
diff-lcs (>= 1.1.3 , < 2.0 )
82
79
rspec-mocks (2.14.4 )
83
- rubyzip (0.9.8 )
84
80
safe_yaml (0.9.7 )
85
- selenium-webdriver (2.21.2 )
86
- childprocess (>= 0.2.5 )
87
- ffi (~> 1.0 )
88
- libwebsocket (~> 0.1.3 )
89
- multi_json (~> 1.0 )
90
- rubyzip
91
81
sinatra (1.4.4 )
92
82
rack (~> 1.4 )
93
83
rack-protection (~> 1.4 )
99
89
webmock (1.16.0 )
100
90
addressable (>= 2.2.7 )
101
91
crack (>= 0.3.2 )
102
- xpath (0.1.4 )
92
+ xpath (2.0.0 )
103
93
nokogiri (~> 1.3 )
104
94
105
95
PLATFORMS
Original file line number Diff line number Diff line change 18
18
end
19
19
20
20
Then /^I should see the following (request|response) headers:$/ do |part , table |
21
- text = page . find ( "pre.#{ part } .headers" ) . text
22
- actual_headers = text . split ( "\n " )
21
+ actual_headers = page . find ( "pre.#{ part } .headers" ) . text
23
22
expected_headers = table . raw . map { |row | row . join ( ": " ) }
24
23
25
24
expected_headers . each do |row |
26
- actual_headers . should include ( row )
25
+ actual_headers . should include ( row . strip )
27
26
end
28
27
end
29
28
Original file line number Diff line number Diff line change 1
1
require "aruba/cucumber"
2
+ require "capybara"
2
3
3
4
Before do
4
5
@aruba_timeout_seconds = 5
5
6
end
7
+
8
+ Capybara . configure do |config |
9
+ config . match = :prefer_exact
10
+ config . ignore_hidden_elements = false
11
+ end
You can’t perform that action at this time.
0 commit comments