wowecon 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wowecon/currency_helpers.rb +6 -1
- data/spec/currency_spec.rb +1 -1
- metadata +1 -1
data/spec/currency_spec.rb
CHANGED
@@ -26,7 +26,7 @@ describe Wowecon::Currency do
|
|
26
26
|
|
27
27
|
it "returns a currency value of zero if initialised with an invalid hash" do
|
28
28
|
zero = Wowecon::Currency.new({:error => "price not found"})
|
29
|
-
zero.to_f.should == 0 && zero.to_hash.should == {:gold => 0, :silver => 0, :copper => 0}
|
29
|
+
zero.to_s.should == "no price" && zero.to_f.should == 0 && zero.to_hash.should == {:gold => 0, :silver => 0, :copper => 0}
|
30
30
|
end
|
31
31
|
|
32
32
|
it "can create a string representation of the currency value" do
|