spreewald 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/spreewald/web_steps.rb +2 -2
- data/lib/spreewald_support/version.rb +1 -1
- data/spreewald.gemspec +1 -1
- data/tests/rails-3_capybara-1/Gemfile.lock +2 -2
- data/tests/rails-3_capybara-2/Gemfile.lock +2 -2
- data/tests/rails-4_capybara-3/Gemfile.lock +2 -2
- data/tests/shared/app/views/static_pages/within.html.haml +8 -0
- data/tests/shared/features/shared/web_steps.feature +16 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9084ea60b044ca1bf1cf5af6658faf8a1cd23270
|
4
|
+
data.tar.gz: 27c542f6b54cd027bcfd266569b2539d7908252b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54b2f9e5a2e1901eb297ab04bb45892944a4026fc562bb5b63bef544d47c9f06c5c058b8dce4541c5fbdb34e219a8690ba6cc83448bb20a715132b58aefae66e
|
7
|
+
data.tar.gz: 86483d571eaa197e76bd67c347b9de91265a8ea4791215617e8200431e578f320bb5fe0cdc1954688fc59d6c757282591379824329d4f6f4b72a004b16fc4606
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
5
5
|
|
6
|
+
## 2.1.2
|
7
|
+
Allow `I should(not )? see /REGEXP/` to be composed with the `within` step.
|
8
|
+
|
6
9
|
## 2.1.1
|
7
10
|
Fix `Then I should get a download with filename "..."' step
|
8
11
|
|
data/lib/spreewald/web_steps.rb
CHANGED
@@ -178,7 +178,7 @@ end.overridable
|
|
178
178
|
Then /^(?:|I )should see \/([^\/]*)\/$/ do |regexp|
|
179
179
|
regexp = Regexp.new(regexp)
|
180
180
|
patiently do
|
181
|
-
expect(page).to have_xpath('
|
181
|
+
expect(page).to have_xpath('.//descendant-or-self::*', :text => regexp)
|
182
182
|
end
|
183
183
|
end.overridable
|
184
184
|
|
@@ -191,7 +191,7 @@ end.overridable
|
|
191
191
|
Then /^(?:|I )should not see \/([^\/]*)\/$/ do |regexp|
|
192
192
|
patiently do
|
193
193
|
regexp = Regexp.new(regexp)
|
194
|
-
expect(page).to have_no_xpath('
|
194
|
+
expect(page).to have_no_xpath('.//descendant-or-self::*', :text => regexp)
|
195
195
|
end
|
196
196
|
end.overridable
|
197
197
|
|
data/spreewald.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
|
20
20
|
gem.add_dependency('cucumber')
|
21
21
|
gem.add_dependency('cucumber_priority', '>=0.3.0')
|
22
|
-
gem.add_dependency('rspec')
|
22
|
+
gem.add_dependency('rspec', '>= 2.13.0')
|
23
23
|
|
24
24
|
# Development
|
25
25
|
gem.add_development_dependency 'bundler', '~> 1.11'
|
@@ -191,6 +191,21 @@ Feature: Web steps
|
|
191
191
|
And I should not see "Nonsense" within a table
|
192
192
|
|
193
193
|
|
194
|
+
Scenario: /^(?:|I )should see \/([^\/]*)\/$/
|
195
|
+
When I go to "/static_pages/within"
|
196
|
+
Then I should see /Shared Text/
|
197
|
+
And I should see /Unique Text/
|
198
|
+
But I should not see /Nonsense/
|
199
|
+
|
200
|
+
|
201
|
+
Scenario: /^(?:|I )should see \/([^\/]*)\/ within (.*[^:])$/
|
202
|
+
When I go to "/static_pages/within"
|
203
|
+
Then I should see /Shared Text/ within ".scoped-element"
|
204
|
+
And I should see /Shared Text/ within ".unrelated-element"
|
205
|
+
And I should see /Unique Text/ within ".scoped-element"
|
206
|
+
But I should not see /Unique Text/ within ".unrelated-element"
|
207
|
+
|
208
|
+
|
194
209
|
Scenario: /^(.*) within (.*[^:])$/ with a Capybara::Node::Element
|
195
210
|
When I go to "/static_pages/within"
|
196
211
|
Then I should see "All" within the table row containing "Admin"
|
@@ -222,4 +237,4 @@ Feature: Web steps
|
|
222
237
|
|
223
238
|
Scenario: /^I should get a download with filename "([^\"]*)"$/
|
224
239
|
When I go to "/downloads/spreadsheet"
|
225
|
-
Then I should get a download with filename "test.ods"
|
240
|
+
Then I should get a download with filename "test.ods"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreewald
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Kraze
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.13.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.13.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|