fixer 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/fixer/cache.rb +1 -1
- data/lib/fixer/version.rb +1 -1
- data/spec/fixer/cache_spec.rb +3 -3
- metadata +2 -2
data/lib/fixer/cache.rb
CHANGED
data/lib/fixer/version.rb
CHANGED
data/spec/fixer/cache_spec.rb
CHANGED
@@ -68,13 +68,13 @@ module Fixer
|
|
68
68
|
|
69
69
|
it "raises an error if counter currency not valid" do
|
70
70
|
cache.instance_variable_set(:@rates, mock_rates)
|
71
|
-
lambda { cache.to_foo }.should raise_error Fixer::Error, "
|
71
|
+
lambda { cache.to_foo }.should raise_error Fixer::Error, "FOO not a valid currency"
|
72
72
|
end
|
73
73
|
|
74
74
|
it "raises an error if base currency not valid" do
|
75
75
|
cache.instance_variable_set(:@rates, mock_rates)
|
76
|
-
cache.base = "
|
77
|
-
lambda { cache.to_usd }.should raise_error Fixer::Error, "
|
76
|
+
cache.base = "BAR"
|
77
|
+
lambda { cache.to_usd }.should raise_error Fixer::Error, "BAR not a valid currency"
|
78
78
|
end
|
79
79
|
end
|
80
80
|
end
|