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.
- data/Rakefile +1 -1
- data/lib/spec/vraptor/matchers.rb +5 -5
- metadata +2 -2
data/Rakefile
CHANGED
@@ -4,13 +4,13 @@ module VRaptorMatchers
|
|
4
4
|
@path = path
|
5
5
|
end
|
6
6
|
|
7
|
-
def matches?(
|
8
|
-
@
|
9
|
-
@
|
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 #{@
|
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
|
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:
|
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-
|
12
|
+
date: 2009-02-05 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|