spreewald 2.2.4 → 2.3.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -22
- data/lib/spreewald/development_steps.rb +1 -0
- data/lib/spreewald/file_attachment_steps.rb +3 -21
- data/lib/spreewald/web_steps.rb +1 -1
- 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
- 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: 258d7d38cd16605b425a3d32c44a2d581ea54373
|
|
4
|
+
data.tar.gz: bfe7ff5a72464d36d15ee2faf651ef84bf0c41e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8e5f4d23f4e3f3335759fd2be57b5ec8bc57d4d0310dd4bec9c74d73b8fa6caf4f343eb5d1c37f627c6a9d7c4e4177abed1566ebfbf0be4b739d30877134dbd
|
|
7
|
+
data.tar.gz: 8a07e527e8605893210adc8055620fb10c1df639720ae8665db8e21fa89b205ccef064e36961bdfe88e8ed8d66427194735282dcb396df0ec8970975d032f8c0
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@ 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.3.0
|
|
7
|
+
- Deprecate two steps:
|
|
8
|
+
- (Given) the file ... was attached to the ... above\
|
|
9
|
+
- (Then) debugger\
|
|
10
|
+
|
|
6
11
|
## 2.2.4
|
|
7
12
|
- Fix "..." field should have the error "..." test by removing old should syntax
|
|
8
13
|
- Add single-line mail step to READNE
|
data/README.md
CHANGED
|
@@ -223,27 +223,7 @@ the step definitions.
|
|
|
223
223
|
|
|
224
224
|
* **Given the file "..." was attached( as (.../)?...)? to the ... above( at "...")?**
|
|
225
225
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
Example (Company has a `file` attribute):
|
|
229
|
-
|
|
230
|
-
Given the file "image.png" was attached to the company above
|
|
231
|
-
|
|
232
|
-
You may specify the attribute under which the file is stored …
|
|
233
|
-
|
|
234
|
-
Example (Company has a `logo` attribute):
|
|
235
|
-
|
|
236
|
-
Given the file "image.png" was attached as logo to the company above
|
|
237
|
-
|
|
238
|
-
… or both a container class and its attribute name
|
|
239
|
-
|
|
240
|
-
Example (Company has many `Image`s, `Image` has a `file` attribute)
|
|
241
|
-
|
|
242
|
-
Given the file "image.png" was attached as Image/file to the company above
|
|
243
|
-
|
|
244
|
-
To simultaneously set the `updated_at` timestamp:
|
|
245
|
-
|
|
246
|
-
Given the file "some_file" was attached to the profile above at "2011-11-11 11:11"
|
|
226
|
+
This step is deprecated and will be removed from spreewald. If you still want to use it, copy the code to your project's own steps.
|
|
247
227
|
|
|
248
228
|
|
|
249
229
|
### table_steps.rb
|
|
@@ -574,7 +554,7 @@ deprecation notice. Decide for yourself whether you want to use them:
|
|
|
574
554
|
Within a selenium test, the browser is asked whether the element is really visible
|
|
575
555
|
In a non-selenium test, we only check for `.hidden`, `.invisible` or `style: display:none`
|
|
576
556
|
|
|
577
|
-
The step 'Then (the tag )?"..." should **not** be visible' is ambiguous. Please use 'Then (the tag )?"..." should be hidden' or 'Then I should not see "..."' instead.
|
|
557
|
+
The step 'Then (the tag )?"..." should **not** be visible' is ambiguous. Please use 'Then (the tag )?"..." should be hidden' or 'Then I should not see "..."' instead. Note that the **not** option will be removed in future versions of Spreewald.
|
|
578
558
|
|
|
579
559
|
More details [here](https://makandracards.com/makandra/1049-capybara-check-that-a-page-element-is-hidden-via-css)
|
|
580
560
|
|
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
3
|
-
# Example (Company has a `file` attribute):
|
|
4
|
-
#
|
|
5
|
-
# Given the file "image.png" was attached to the company above
|
|
6
|
-
#
|
|
7
|
-
# You may specify the attribute under which the file is stored …
|
|
8
|
-
#
|
|
9
|
-
# Example (Company has a `logo` attribute):
|
|
10
|
-
#
|
|
11
|
-
# Given the file "image.png" was attached as logo to the company above
|
|
12
|
-
#
|
|
13
|
-
# … or both a container class and its attribute name
|
|
14
|
-
#
|
|
15
|
-
# Example (Company has many `Image`s, `Image` has a `file` attribute)
|
|
16
|
-
#
|
|
17
|
-
# Given the file "image.png" was attached as Image/file to the company above
|
|
18
|
-
#
|
|
19
|
-
# To simultaneously set the `updated_at` timestamp:
|
|
20
|
-
#
|
|
21
|
-
# Given the file "some_file" was attached to the profile above at "2011-11-11 11:11"
|
|
1
|
+
# This step is deprecated and will be removed from spreewald. If you still want to use it, copy the code to your project's own steps.
|
|
22
2
|
Given /^the file "([^"]*)" was attached(?: as (?:([^"]*)\/)?([^"]*))? to the ([^"]*) above(?: at "([^"]*)")?$/ do
|
|
23
3
|
|path_to_file, container_name, relation_name, model_name, time_string|
|
|
24
4
|
|
|
5
|
+
warn "The step 'the file ... was attached to the ... above' will soon be removed from Spreewald, because we want Spreewald to be a library of steps that interact with a user interface and instead of manipulating the database directly. If you wish to further use this step please copy it over to your project's own steps."
|
|
6
|
+
|
|
25
7
|
object = model_name.camelize.constantize.last
|
|
26
8
|
time = Time.parse(time_string) if time_string.present?
|
|
27
9
|
relation_name ||= 'file'
|
data/lib/spreewald/web_steps.rb
CHANGED
|
@@ -526,7 +526,7 @@ end.overridable
|
|
|
526
526
|
# Within a selenium test, the browser is asked whether the element is really visible
|
|
527
527
|
# In a non-selenium test, we only check for `.hidden`, `.invisible` or `style: display:none`
|
|
528
528
|
#
|
|
529
|
-
# The step 'Then (the tag )?"..." should **not** be visible' is ambiguous. Please use 'Then (the tag )?"..." should be hidden' or 'Then I should not see "..."' instead.
|
|
529
|
+
# The step 'Then (the tag )?"..." should **not** be visible' is ambiguous. Please use 'Then (the tag )?"..." should be hidden' or 'Then I should not see "..."' instead. Note that the **not** option will be removed in future versions of Spreewald.
|
|
530
530
|
#
|
|
531
531
|
# More details [here](https://makandracards.com/makandra/1049-capybara-check-that-a-page-element-is-hidden-via-css)
|
|
532
532
|
Then /^(the tag )?"([^\"]+)" should( not)? be visible$/ do |tag, selector_or_text, hidden|
|
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.
|
|
4
|
+
version: 2.3.0
|
|
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-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cucumber
|