coulda_web_steps 0.6.5 → 0.6.6
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/coulda_web_steps.gemspec +1 -1
- data/lib/coulda_web_steps.rb +15 -0
- metadata +3 -3
data/coulda_web_steps.gemspec
CHANGED
data/lib/coulda_web_steps.rb
CHANGED
@@ -20,6 +20,21 @@ module Coulda
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
def then_page_should_have_selector(selector)
|
24
|
+
Then "page should have selector '#{selector}'" do
|
25
|
+
assert page.has_selector?(selector),
|
26
|
+
"Page is missing expected selector '#{selector}'"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def then_page_should_not_have_selector(selector)
|
31
|
+
Then "page should have selector '#{selector}'" do
|
32
|
+
assert !page.has_selector?(selector),
|
33
|
+
"Page has selector '#{selector}' that should not be present"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
|
23
38
|
# Asserts that the current page has *content* and a Then step that reads like
|
24
39
|
# "Then I should see 'You're not cookin!'"
|
25
40
|
# @param content The content to check for.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coulda_web_steps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 6
|
10
|
+
version: 0.6.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- elight
|