archivable 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/archivable/controller.rb +2 -2
- data/lib/archivable/version.rb +1 -1
- data/spec/archivable_controller_spec.rb +2 -2
- 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: bab99e0cb1b1cb2dbf7aa144bff9246f28364be1
|
4
|
+
data.tar.gz: 9c0ac440a506c6a33839a52fd9f060d8c7ba86c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c3575eb4962718d146ee01f45edb9a3429fc8cbfe43d2260c0f29d593673a03ca3b9cb6a00141352ef7466e182c55d71b030dc5892e61c019ce9ca8d22212e2
|
7
|
+
data.tar.gz: 66f1f9297ffcc182b97e36d347f0abdeb525698fe799023d5d37cd300cc335f9d4e07a5a525c0a3166c0b131fcf0abbfd66c887d36a1910dcaeed36bdb7696d7
|
@@ -11,9 +11,9 @@ module Archivable
|
|
11
11
|
archivable_model.toggle(:archived)
|
12
12
|
|
13
13
|
if archivable_model.save
|
14
|
-
redirect_to action: :show
|
14
|
+
redirect_to action: :show
|
15
15
|
else
|
16
|
-
render :edit
|
16
|
+
render :edit
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
data/lib/archivable/version.rb
CHANGED
@@ -19,7 +19,7 @@ describe Archivable::Controller do
|
|
19
19
|
|
20
20
|
it 'should render the :show action' do
|
21
21
|
pending 'controller mocking tweaks needed'
|
22
|
-
subject.should_receive(:redirect_to).with(action: :show
|
22
|
+
subject.should_receive(:redirect_to).with(action: :show)
|
23
23
|
subject.archive
|
24
24
|
end
|
25
25
|
end
|
@@ -28,7 +28,7 @@ describe Archivable::Controller do
|
|
28
28
|
|
29
29
|
it 'should render the :show action' do
|
30
30
|
Fake.any_instance.stub({ save: false })
|
31
|
-
subject.should_receive(:render).with(:edit
|
31
|
+
subject.should_receive(:render).with(:edit)
|
32
32
|
subject.archive
|
33
33
|
end
|
34
34
|
end
|