archivable 1.0.0 → 1.1.0

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: 4fc7307d09a886e09d22380e036677cde86d644b
4
- data.tar.gz: 96fea8d4bf70912f24cdb699ffd51af2d7541b11
3
+ metadata.gz: 1ec9af586505369d7a76af5346a905a1d2aefbe8
4
+ data.tar.gz: 09ff01b04e3bdcf165329b48f63ede75d60be75f
5
5
  SHA512:
6
- metadata.gz: 5ae7cebf05e9fda03dd208fddadd4b399d54392e33a742fcea648b83867367d4c0bc1d22142693166ed4593e127d329ec6f66bffa5277842627281d0caac2d91
7
- data.tar.gz: 474d8a2c42be8be8a7b78cc547fc55fffdace91f486f8e8bcc01fb2de1443240cb41448e9862a4dbb0fd16e456a6dbabaf902c4ecf2933b88b4e57dcfcc2c5c5
6
+ metadata.gz: 8df916527d0fd026b93b088bb323a57a18a2b9575c16f7159c9ed0799b4f734f9f7ab71d460fb054399bd4660088ab6154e21deda2fb1e91fb0949c18605e615
7
+ data.tar.gz: 599517b1dfd93606f94dd4261cda96f424def10b548578dceb09d114118d15ce02eebb42d541ba915e4de245d47e24a1d2f2999fc2e5b29822010356f08b46a8
@@ -1,3 +1,3 @@
1
1
  module Archivable
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -12,14 +12,13 @@ describe Archivable::Controller do
12
12
 
13
13
  it 'should set the instance variable' do
14
14
  subject.archive
15
- expect.get_model_instance_variable).to eq(subject.fake)
15
+ expect(subject.get_model_instance_variable).to eq(subject.fake)
16
16
  end
17
17
 
18
18
  context 'when successfully archived' do
19
19
 
20
20
  it 'should render the :show action' do
21
- pending 'controller mocking tweaks needed'
22
- subject.should_receive(:redirect_to).with(action: :show)
21
+ expect(subject).to receive(:redirect_to).with(action: :show)
23
22
  subject.archive
24
23
  end
25
24
  end
@@ -27,8 +26,8 @@ describe Archivable::Controller do
27
26
  context 'when unsuccessfully archived' do
28
27
 
29
28
  it 'should render the :show action' do
30
- Fake.any_instance.stub({ save: false })
31
- subject.should_receive(:render).with(:edit)
29
+ allow_any_instance_of(Fake).to receive(:save).and_return(false)
30
+ expect(subject).to receive(:render).with(:edit)
32
31
  subject.archive
33
32
  end
34
33
  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: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Otander