wowecon 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,10 +43,14 @@ module Wowecon
43
43
  tags
44
44
  end
45
45
 
46
+ def inspect
47
+ @value.to_i
48
+ end
49
+
46
50
  def ==(other)
47
51
  @value == other.to_i
48
52
  end
49
-
53
+
50
54
  def >(other)
51
55
  @value > other.to_i
52
56
  end
@@ -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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: wowecon
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.2
5
+ version: 0.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Darlow