coulda_web_steps 0.6.3 → 0.6.4

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.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{coulda_web_steps}
8
- s.version = "0.6.3"
8
+ s.version = "0.6.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["elight"]
12
- s.date = %q{2011-1-26}
12
+ s.date = %q{2011-2-2}
13
13
  s.description = %q{Provides reusable steps for Coulda acceptance testing of Rack/Rails applications}
14
14
  s.email = %q{evan@tripledogdare.net}
15
15
  s.extra_rdoc_files = [
@@ -66,6 +66,16 @@ module Coulda
66
66
  end
67
67
  end
68
68
 
69
+ def then_i_should_not_be_on(path, *args)
70
+ humanized_path = path.to_s.gsub /_/, " "
71
+ Then "I should not be on #{humanized_path}" do
72
+ instance_var_args = args.inject([]) do |new_args, arg|
73
+ new_args << instance_variable_get("@#{arg}")
74
+ end
75
+ assert current_path != __send__(path, *instance_var_args), "I am on '#{current_path}' but I shouldn't be"
76
+ end
77
+ end
78
+
69
79
  def then_i_should_be_on(path, *args)
70
80
  humanized_path = path.to_s.gsub /_/, " "
71
81
  Then "I should be on #{humanized_path}" do
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: 1
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 3
10
- version: 0.6.3
9
+ - 4
10
+ version: 0.6.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - elight
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-26 00:00:00 -05:00
18
+ date: 2011-02-02 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency