saucy 0.2.6 → 0.2.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,8 +17,8 @@ Feature: Manage Billing
17
17
 
18
18
  Then the "Cardholder name" field should contain "Joe Smith"
19
19
  And the "Billing email" field should contain "jsmith@example.com"
20
- And the "Card number" field should contain "^$"
21
- And the "Verification code" field should contain "^$"
20
+ And the "Card number" field should have nothing in it
21
+ And the "Verification code" field should have nothing in it
22
22
  And the "Expiration month" field should contain "01"
23
23
  And the "Expiration year" field should contain "2015"
24
24
 
@@ -12,6 +12,18 @@ Then /^"([^"]*)" should have the error "([^"]*)"$/ do |field, error|
12
12
  field.find(:xpath, "following-sibling::p[@class='inline-errors'][contains(text(), '#{error}')]").should_not be_nil
13
13
  end
14
14
 
15
+ Then /^the "([^"]*)" field(?: within "([^"]*)")? should have nothing in it$/ do |field, selector|
16
+ with_scope(selector) do
17
+ field = find_field(field)
18
+ field_value = (field.tag_name == 'textarea') ? field.text : field.value
19
+ if field_value.respond_to? :should
20
+ field_value.should be_nil
21
+ else
22
+ assert_nil(field_value)
23
+ end
24
+ end
25
+ end
26
+
15
27
  Then /^I there should be a link to the help site$/ do
16
28
  page.should have_css("a[href*='help.example.com']")
17
29
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saucy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 69
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 6
10
- version: 0.2.6
10
+ - 1
11
+ version: 0.2.6.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - thoughtbot, inc.