wowecon 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wowecon/currency_helpers.rb +5 -1
- data/spec/currency_spec.rb +4 -0
- metadata +1 -1
data/spec/currency_spec.rb
CHANGED
@@ -32,6 +32,10 @@ describe Wowecon::Currency do
|
|
32
32
|
@currency = Wowecon::Currency.new({:gold => 1420, :silver => 9, :copper => 10})
|
33
33
|
end
|
34
34
|
|
35
|
+
it "responds with the integer representation by default" do
|
36
|
+
@currency.should == 14200910
|
37
|
+
end
|
38
|
+
|
35
39
|
it "responds to integer" do
|
36
40
|
(@currency.should respond_to :to_i) and @currency.to_i.should == 14200910
|
37
41
|
end
|