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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c99c85a31687ceb92b1cc20f779cc59560c96b6b
4
- data.tar.gz: beb573cd3b2f128d481133ed2d9eea145e0a5291
3
+ metadata.gz: bab99e0cb1b1cb2dbf7aa144bff9246f28364be1
4
+ data.tar.gz: 9c0ac440a506c6a33839a52fd9f060d8c7ba86c5
5
5
  SHA512:
6
- metadata.gz: 69699ae1fe2b734b49bd82b45008b31a6b6e094d8943e95a5ce431cc6a6e47462a9256a463807f6c0bdd2796b0ad16f309c6a4602f18d9695e3f8954b0c4b0e6
7
- data.tar.gz: d0588f09c8918bd87a587b7d1ee2d40c6e629c37dd4d1b31b3b055ec8501b76d7590a9ca53d80e83d1c2251a7fa548be9c5c9f02ac15a8268a962955be862df8
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, notice: get_archivable_flash(archivable_model, success: true)
14
+ redirect_to action: :show
15
15
  else
16
- render :edit, alert: get_archivable_flash(archivable_model, success: false)
16
+ render :edit
17
17
  end
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module Archivable
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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, notice: "Fake was archived successfully.")
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, { alert: "Fake was not archived successfully." })
31
+ subject.should_receive(:render).with(:edit)
32
32
  subject.archive
33
33
  end
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archivable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Otander