spreewald 2.2.4 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 722a4a8f8f3355dddbbd3abd5df49ba0316c1b57
4
- data.tar.gz: 694c570012da6abd82412c1160342a6c09ebf80d
3
+ metadata.gz: 258d7d38cd16605b425a3d32c44a2d581ea54373
4
+ data.tar.gz: bfe7ff5a72464d36d15ee2faf651ef84bf0c41e0
5
5
  SHA512:
6
- metadata.gz: d88a0c8e05b5542bdb58eb49954e96d2c15df249110bd548619292015b2c1fc815fc24366c474f0e91c13405c62e6f1b1e992478eaf5ff5cbd2acead55e8f0fc
7
- data.tar.gz: 30942d57ee1f144a0afad41c1eafc5b132128109a2e0cf25afa3738b17c5233a1222f1feefbc383a41fa5af041c11e9d6ed9c2c1f399c1a2a3ec0ef596c3f53e
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
- Attach a file to the given model's last record.
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
 
@@ -7,6 +7,7 @@ end.overridable
7
7
 
8
8
  # nodoc
9
9
  Then 'debugger' do
10
+ warn 'The step "Then debugger" will be removed in future versions of Spreewald. Please use "Then console" instead.'
10
11
  step 'console' # Alias
11
12
  end.overridable
12
13
 
@@ -1,27 +1,9 @@
1
- # Attach a file to the given model's last record.
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'
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module Spreewald
2
- VERSION = '2.2.4'
2
+ VERSION = '2.3.0'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- spreewald (2.2.4)
4
+ spreewald (2.3.0)
5
5
  cucumber
6
6
  cucumber_priority (>= 0.3.0)
7
7
  rspec (>= 2.13.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- spreewald (2.2.4)
4
+ spreewald (2.3.0)
5
5
  cucumber
6
6
  cucumber_priority (>= 0.3.0)
7
7
  rspec (>= 2.13.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- spreewald (2.2.4)
4
+ spreewald (2.3.0)
5
5
  cucumber
6
6
  cucumber_priority (>= 0.3.0)
7
7
  rspec (>= 2.13.0)
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.2.4
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-07-31 00:00:00.000000000 Z
11
+ date: 2019-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber