spreewald 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -150,7 +150,7 @@ Then /^the "([^"]*)" field(?: within (.*))? should contain "([^"]*)"$/ do |field
150
150
  with_scope(parent) do
151
151
  field = find_field(field)
152
152
  field_value = ((field.tag_name == 'textarea') && field.text.present?) ? field.text : field.value
153
- field_value.should =~ /#{value}/
153
+ field_value.should =~ /#{Regexp.escape(value)}/
154
154
  end
155
155
  end
156
156
  end
@@ -161,7 +161,7 @@ Then /^the "([^"]*)" field(?: within (.*))? should not contain "([^"]*)"$/ do |f
161
161
  with_scope(parent) do
162
162
  field = find_field(field)
163
163
  field_value = (field.tag_name == 'textarea') ? field.text : field.value
164
- field_value.should_not =~ /#{value}/
164
+ field_value.should_not =~ /#{Regexp.escape(value)}/
165
165
  end
166
166
  end
167
167
  end
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module Spreewald
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.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: 2013-02-22 00:00:00 +01:00
18
+ date: 2013-02-28 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency