spreewald 0.3.0 → 0.3.1
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/README.md +36 -6
- data/lib/spreewald/web_steps.rb +4 -1
- data/lib/spreewald_support/version.rb +1 -1
- data/support/documentation_generator.rb +1 -0
- metadata +4 -4
data/README.md
CHANGED
@@ -48,7 +48,7 @@ More info [here](https://makandracards.com/makandra/12139-waiting-for-page-load-
|
|
48
48
|
|
49
49
|
### development_steps.rb
|
50
50
|
|
51
|
-
|
51
|
+
Marks scenario as pending
|
52
52
|
|
53
53
|
* **Then it should work**
|
54
54
|
|
@@ -75,7 +75,7 @@ More info [here](https://makandracards.com/makandra/12139-waiting-for-page-load-
|
|
75
75
|
|
76
76
|
|
77
77
|
|
78
|
-
* **When I clear my
|
78
|
+
* **When I clear my e?mails**
|
79
79
|
|
80
80
|
|
81
81
|
|
@@ -231,12 +231,12 @@ deprecation notice. Decide for yourself whether you want to use them:
|
|
231
231
|
|
232
232
|
|
233
233
|
|
234
|
-
* **When I fill in "..." with "..."**
|
234
|
+
* **When I fill in "..." (with|for) "..."**
|
235
235
|
|
236
236
|
Fill in text field
|
237
237
|
|
238
238
|
|
239
|
-
* **When I fill in "..." for
|
239
|
+
* **When I fill in "..." (with|for) '...'**
|
240
240
|
|
241
241
|
Fill in text field
|
242
242
|
|
@@ -375,12 +375,12 @@ deprecation notice. Decide for yourself whether you want to use them:
|
|
375
375
|
|
376
376
|
|
377
377
|
|
378
|
-
* **Then "..." should( not)? be an option for "..."
|
378
|
+
* **Then "..." should( not)? be an option for "..."**
|
379
379
|
|
380
380
|
Checks for the presence of an option in a select
|
381
381
|
|
382
382
|
|
383
|
-
* **Then I should see '([^']*)'
|
383
|
+
* **Then I should see '([^']*)'**
|
384
384
|
|
385
385
|
Like `Then I should see`, but with single instead of double quotes. In case the string contains quotes as well.
|
386
386
|
|
@@ -426,6 +426,7 @@ deprecation notice. Decide for yourself whether you want to use them:
|
|
426
426
|
Then I should see an element ".page .container"
|
427
427
|
|
428
428
|
|
429
|
+
|
429
430
|
* **Then I should get a text response**
|
430
431
|
|
431
432
|
Checks that the result has content type text/plain
|
@@ -451,3 +452,32 @@ deprecation notice. Decide for yourself whether you want to use them:
|
|
451
452
|
|
452
453
|
|
453
454
|
|
455
|
+
|
456
|
+
* **When I confirm the browser dialog**
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
* **When I cancel the browser dialog**
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
* **When I enter "..." into the browser dialog**
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
* **Then I should see in this order:?**
|
472
|
+
|
473
|
+
Checks that these strings are rendered in the given order in a single line or in multiple lines
|
474
|
+
|
475
|
+
Example:
|
476
|
+
|
477
|
+
Then I should see in this order:
|
478
|
+
| Alpha Group |
|
479
|
+
| Augsburg |
|
480
|
+
| Berlin |
|
481
|
+
| Beta Group |
|
482
|
+
|
483
|
+
|
data/lib/spreewald/web_steps.rb
CHANGED
@@ -309,7 +309,10 @@ end
|
|
309
309
|
Then /^nothing should be selected for "([^"]*)"?$/ do |field|
|
310
310
|
patiently do
|
311
311
|
select = find_field(field)
|
312
|
-
|
312
|
+
begin
|
313
|
+
select.find(:xpath, ".//option[@selected = 'selected']").should be_blank
|
314
|
+
rescue Capybara::ElementNotFound
|
315
|
+
end
|
313
316
|
end
|
314
317
|
end
|
315
318
|
|
@@ -2,6 +2,7 @@ module DocumentationGenerator
|
|
2
2
|
|
3
3
|
module CommentExtractor
|
4
4
|
def parse_and_format_comment(comment)
|
5
|
+
comment.gsub!(/.*coding:.*UTF-8.*/, '')
|
5
6
|
comment.strip!
|
6
7
|
comment_lines = comment.split("\n").take_while { |line| line =~ /^\s*#/ }
|
7
8
|
comment_lines && comment_lines.join("\n").gsub(/^\s*# ?/, '')
|
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: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tobias Kraze
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-11-
|
18
|
+
date: 2012-11-12 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|