latinum 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/latinum/resource.rb +1 -1
- data/lib/latinum/version.rb +1 -1
- data/spec/latinum/resource_spec.rb +6 -0
- 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: 995a66ac306c3adf34324d0e1447dea9df94f16f
|
4
|
+
data.tar.gz: 52277f8cc0847a25babc7ea0631075684c82e452
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ab641ec952d92003b562c8cb605e9957b7e06d8c650d351ed237ea61e2f60ee6be321da12ae12a290e7f0723b7ba5f44d300a2b2e0114fafbffb73e891bfb13
|
7
|
+
data.tar.gz: 99b1af25e00450dc0ed9a2be09034bac442e25fa1af3b6b644371ffe30b3af14508fb1f05e6a127533bd507cc077c74ef533d42c78ecd2a8fdd3d54178a016dd
|
data/lib/latinum/resource.rb
CHANGED
data/lib/latinum/version.rb
CHANGED
@@ -40,5 +40,11 @@ module Latinum::ResourceSpec
|
|
40
40
|
expect(Latinum::Resource.load(nil)).to be nil
|
41
41
|
expect(Latinum::Resource.dump(nil)).to be nil
|
42
42
|
end
|
43
|
+
|
44
|
+
it "should inspect nicely" do
|
45
|
+
resource = Latinum::Resource.load("10 NZD")
|
46
|
+
|
47
|
+
expect(resource.inspect).to be == '#<Latinum::Resource "10.0 NZD">'
|
48
|
+
end
|
43
49
|
end
|
44
50
|
end
|