spreewald 0.5.9 → 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/spreewald/web_steps.rb +7 -1
- data/lib/spreewald_support/version.rb +1 -1
- metadata +7 -6
data/lib/spreewald/web_steps.rb
CHANGED
@@ -225,7 +225,13 @@ Then /^(?:|I )should be on (.+)$/ do |page_name|
|
|
225
225
|
fragment = URI.parse(current_url).fragment
|
226
226
|
current_path = URI.parse(current_url).path
|
227
227
|
current_path << "##{fragment}" if fragment.present?
|
228
|
-
|
228
|
+
expected_path = _path_to(page_name)
|
229
|
+
|
230
|
+
# Consider two pages equal if they only differ by a trailing slash.
|
231
|
+
current_path = expected_path if current_path.chomp("/") == expected_path.chomp("/")
|
232
|
+
current_path = expected_path if current_path.gsub("/#", "#") == expected_path.gsub("/#", "#")
|
233
|
+
|
234
|
+
current_path.should == expected_path
|
229
235
|
end
|
230
236
|
end
|
231
237
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreewald
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 10
|
10
|
+
version: 0.5.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Kraze
|
@@ -15,7 +15,8 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-03-
|
18
|
+
date: 2013-03-28 00:00:00 +01:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: cucumber-rails
|
@@ -92,6 +93,7 @@ files:
|
|
92
93
|
- lib/spreewald_support/version.rb
|
93
94
|
- spreewald.gemspec
|
94
95
|
- support/documentation_generator.rb
|
96
|
+
has_rdoc: true
|
95
97
|
homepage: https://github.com/makandra/spreewald
|
96
98
|
licenses: []
|
97
99
|
|
@@ -121,10 +123,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
123
|
requirements: []
|
122
124
|
|
123
125
|
rubyforge_project:
|
124
|
-
rubygems_version: 1.
|
126
|
+
rubygems_version: 1.3.9.5
|
125
127
|
signing_key:
|
126
128
|
specification_version: 3
|
127
129
|
summary: Collection of useful cucumber steps.
|
128
130
|
test_files: []
|
129
131
|
|
130
|
-
has_rdoc:
|