dcrec1-rspec-vraptor 0.5 → 0.5.1

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/spec/vraptor/matchers.rb +5 -5
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/gempackagetask'
5
5
  require 'spec/rake/spectask'
6
6
 
7
7
  GEM = "rspec-vraptor"
8
- GEM_VERSION = "0.5"
8
+ GEM_VERSION = "0.5.1"
9
9
  SUMMARY = "RSpec for VRaptor Sexy URLs"
10
10
  AUTHOR = "Diego Carrion"
11
11
  EMAIL = "dc.rec1@gmail.com"
@@ -4,13 +4,13 @@ module VRaptorMatchers
4
4
  @path = path
5
5
  end
6
6
 
7
- def matches?(target)
8
- @target = target
9
- @target.destination.eql? @path
7
+ def matches?(response)
8
+ @response = response
9
+ @response.destination.eql? @path
10
10
  end
11
11
 
12
12
  def failure_message
13
- "expected response to redirect to #{@target.destination}, is redirecting to #{@path}"
13
+ "expected response to redirect to #{@path}, is redirecting to #{@response.destination}"
14
14
  end
15
15
  end
16
16
 
@@ -29,7 +29,7 @@ module VRaptorMatchers
29
29
  end
30
30
 
31
31
  def failure_message
32
- "expected response to redirect to #{@dispatcher.target}, is redirecting to #{@target}"
32
+ "expected request to render #{@target}, is rendering #{@dispatcher.target}"
33
33
  end
34
34
  end
35
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcrec1-rspec-vraptor
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.5"
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Carrion
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-04 00:00:00 -08:00
12
+ date: 2009-02-05 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15