futuroscope 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/futuroscope/future.rb +2 -0
- data/lib/futuroscope/version.rb +1 -1
- data/spec/futuroscope/future_spec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daf750e4a6aa1a63d92cdee1044a691509e66a5b
|
4
|
+
data.tar.gz: 10fba900462e7d30740a187942e8e21795479325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 318c21b3179feb0f053da879342c9e36957cf44ddae43de4a96265ef602cddaf60db0187b74e449f72302c6d005f5da86b40faccdeeccd32ee1f4590cda2678a
|
7
|
+
data.tar.gz: c103d17e6394815b9603d5a54765ad357c49862f33536a59c392c9f5bfdc4d119e139bb33c903cc4baf59b48d650277dce1029ed668670750537796bb3d56b68
|
data/lib/futuroscope/future.rb
CHANGED
data/lib/futuroscope/version.rb
CHANGED
@@ -44,5 +44,12 @@ module Futuroscope
|
|
44
44
|
future.inspect
|
45
45
|
}).to raise_error(Exception)
|
46
46
|
end
|
47
|
+
|
48
|
+
it "returns the original object when future_value gets called" do
|
49
|
+
object = mock()
|
50
|
+
future = Future.new{ object }
|
51
|
+
|
52
|
+
expect(future.future_value.object_id === object.object_id).to eq(true)
|
53
|
+
end
|
47
54
|
end
|
48
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: futuroscope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|