spreewald 0.0.4 → 0.1.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.
@@ -125,12 +125,13 @@ Then /^the "([^"]*)" field(?: within (.*))? should contain "([^"]*)"$/ do |field
125
125
  patiently do
126
126
  with_scope(parent) do
127
127
  field = find_field(field)
128
- field_value = (field.tag_name == 'textarea') ? field.text : field.value
128
+ field_value = ((field.tag_name == 'textarea') && field.text.present?) ? field.text : field.value
129
129
  field_value.should =~ /#{value}/
130
130
  end
131
131
  end
132
132
  end
133
133
 
134
+
134
135
  Then /^the "([^"]*)" field(?: within (.*))? should not contain "([^"]*)"$/ do |field, parent, value|
135
136
  patiently do
136
137
  with_scope(parent) do
@@ -140,7 +141,6 @@ Then /^the "([^"]*)" field(?: within (.*))? should not contain "([^"]*)"$/ do |f
140
141
  end
141
142
  end
142
143
  end
143
-
144
144
  Then /^the "([^"]*)" field should have the error "([^"]*)"$/ do |field, error_message|
145
145
  patiently do
146
146
  element = find_field(field)
@@ -1,3 +1,3 @@
1
1
  module Spreewald
2
- VERSION = "0.0.4"
2
+ VERSION = "0.1.0"
3
3
  end
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: 23
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 4
10
- version: 0.0.4
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tobias Kraze