object-channel 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  class ObjectChannel
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -142,20 +142,20 @@ describe 'isolate' do
142
142
 
143
143
  context 'when block returns' do
144
144
  subject do
145
- lambda{ return { :k=>'value', :int=>4 } }
145
+ lambda{ { :k=>'value', :int=>4 } }
146
146
  end
147
147
 
148
148
  it 'should not raise' do
149
149
  expect{ Isolater.isolate{ subject.call } }.to_not raise_exception
150
150
  end
151
151
  it 'should return the correct value' do
152
- subject.call.should == { :k=>'value', :int=>4 }
152
+ Isolater.isolate{ subject.call }.should == { :k=>'value', :int=>4 }
153
153
  end
154
154
  end
155
155
 
156
156
  context 'when block raises' do
157
157
  subject do
158
- lambda{ $GLOBAL_VALUE = true; 5 / 0 }
158
+ lambda{ 5 / 0 }
159
159
  end
160
160
 
161
161
  it 'should raise' do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: object-channel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Biesemeyer