spreewald 1.12.3 → 1.12.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/spreewald/web_steps.rb +2 -2
- data/lib/spreewald_support/version.rb +1 -1
- data/tests/rails-3_capybara-1/Gemfile.lock +1 -1
- data/tests/rails-3_capybara-2/Gemfile.lock +1 -1
- data/tests/rails-4_capybara-3/Gemfile.lock +1 -1
- data/tests/rails-4_capybara-3/features/web_steps.feature +5 -0
- data/tests/shared/app/views/static_pages/within.html.haml +1 -0
- data/tests/shared/features/shared/web_steps.feature +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a2a3542b9623d1cfab0efd11ae9d0fcc78a2c76
|
4
|
+
data.tar.gz: c838cd39696ccc1061e0adc09145aac1d8f39843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdcde4e768d6262c4d30c25960834681cf733de7a0ba34eede0cfeb80415dba44f8de975146467d23882be5049d1840173b0aded0aed309fb22f21936dfe3be5
|
7
|
+
data.tar.gz: d7e426b0f8118943fb25c88665a66d7a9c8421ea3ba16781c54d9d5a330666ebddb630746a2adf01dce101e2fb422c2587f204b7152e390e275acae9c330d437
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,8 @@ 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
|
+
## 1.12.4
|
7
|
+
The word "within" can now be used in arguments for other steps without causing errors (Issue #53)
|
6
8
|
|
7
9
|
## 1.12.3
|
8
10
|
Prevent wall of warnings when `Then console` is used multiple times in on test run ([issue](https://github.com/makandra/spreewald/issues/80))
|
data/lib/spreewald/web_steps.rb
CHANGED
@@ -52,14 +52,14 @@ When /^(.*) within (.*[^:])$/ do |nested_step, parent|
|
|
52
52
|
patiently do
|
53
53
|
with_scope(parent) { step(nested_step) }
|
54
54
|
end
|
55
|
-
end.overridable(:priority =>
|
55
|
+
end.overridable(:priority => -1)
|
56
56
|
|
57
57
|
# nodoc
|
58
58
|
When /^(.*) within (.*[^:]):$/ do |nested_step, parent, table_or_string|
|
59
59
|
patiently do
|
60
60
|
with_scope(parent) { step("#{nested_step}:", table_or_string) }
|
61
61
|
end
|
62
|
-
end.overridable(:priority =>
|
62
|
+
end.overridable(:priority => -1)
|
63
63
|
|
64
64
|
Given /^(?:|I )am on (.+)$/ do |page_name|
|
65
65
|
visit _path_to(page_name)
|
@@ -151,6 +151,11 @@ Feature: Web steps
|
|
151
151
|
Then I should see "All" within the table row containing "Admin"
|
152
152
|
|
153
153
|
|
154
|
+
Scenario: the /^(.*) within (.*[^:])$/ step should not be invoked when the word "within" is used in an argument for another step
|
155
|
+
When I go to "/static_pages/within"
|
156
|
+
Then I should see "He lives within a few miles of Augsburg"
|
157
|
+
|
158
|
+
|
154
159
|
Scenario: /^I perform basic authentication as "([^\"]*)\/([^\"]*)" and go to (.*)$/
|
155
160
|
When I go to "/authenticated/page"
|
156
161
|
Then I should see "Access denied"
|
@@ -151,6 +151,11 @@ Feature: Web steps
|
|
151
151
|
Then I should see "All" within the table row containing "Admin"
|
152
152
|
|
153
153
|
|
154
|
+
Scenario: the /^(.*) within (.*[^:])$/ step should not be invoked when the word "within" is used in an argument for another step
|
155
|
+
When I go to "/static_pages/within"
|
156
|
+
Then I should see "He lives within a few miles of Augsburg"
|
157
|
+
|
158
|
+
|
154
159
|
Scenario: /^I perform basic authentication as "([^\"]*)\/([^\"]*)" and go to (.*)$/
|
155
160
|
When I go to "/authenticated/page"
|
156
161
|
Then I should see "Access denied"
|
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: 1.12.
|
4
|
+
version: 1.12.4
|
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-
|
11
|
+
date: 2019-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|