go_to_param 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/go_to_param/version.rb +1 -1
- data/lib/go_to_param.rb +2 -1
- data/spec/go_to_param_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 575e842ed9760fb96ae10b48648e03a851f7d201
|
4
|
+
data.tar.gz: 8c3ce348dc9739151ba27c7a14f5656d40cdcad1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b93398509e61b556f3f12afa630df7a0f7af1bc095d8495dbd9084e41186eb6b5385336d7f068ab01304315020b1598b03dbee8bd63bae073842d956c5384c7
|
7
|
+
data.tar.gz: 2fd2e88f189dbba5d53410aadc86ca7d84d0801d536a9396db5434c6f7b15dee849fe8eec84e7de60815817041557139965a102aa4167095b2fd959077a23623
|
data/lib/go_to_param/version.rb
CHANGED
data/lib/go_to_param.rb
CHANGED
data/spec/go_to_param_spec.rb
CHANGED
@@ -68,6 +68,10 @@ describe GoToParam do
|
|
68
68
|
end
|
69
69
|
|
70
70
|
describe "#go_to_path" do
|
71
|
+
it "becomes a helper method" do
|
72
|
+
FakeController.helper_methods.should include :go_to_path
|
73
|
+
end
|
74
|
+
|
71
75
|
it "is the go_to parameter value" do
|
72
76
|
controller.params = { go_to: "/example", id: "1" }
|
73
77
|
controller.go_to_path.should == "/example"
|
@@ -80,6 +84,10 @@ describe GoToParam do
|
|
80
84
|
end
|
81
85
|
|
82
86
|
describe "#go_to_path_or" do
|
87
|
+
it "becomes a helper method" do
|
88
|
+
FakeController.helper_methods.should include :go_to_path_or
|
89
|
+
end
|
90
|
+
|
83
91
|
it "is the go_to parameter value" do
|
84
92
|
controller.params = { go_to: "/example", id: "1" }
|
85
93
|
controller.go_to_path_or("/default").should == "/example"
|