hamsterdam 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hamsterdam.rb +1 -0
- data/lib/hamsterdam/version.rb +1 -1
- data/spec/hamsterdam_spec.rb +7 -0
- metadata +2 -2
data/lib/hamsterdam.rb
CHANGED
data/lib/hamsterdam/version.rb
CHANGED
data/spec/hamsterdam_spec.rb
CHANGED
@@ -157,6 +157,13 @@ describe "Hamsterdam structures" do
|
|
157
157
|
(s1 == nil).should be_false
|
158
158
|
s1.should_not == nil
|
159
159
|
end
|
160
|
+
|
161
|
+
it "can be compared to non structs" do
|
162
|
+
s1 = struct_class.new(top: 50, bottom: 75)
|
163
|
+
s1.eql?(:foo).should be_false
|
164
|
+
(s1 == :foo).should be_false
|
165
|
+
s1.should_not == :foo
|
166
|
+
end
|
160
167
|
end
|
161
168
|
|
162
169
|
it "uses the same #hash as the underlying data structure" do
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: hamsterdam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- David Crosby
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hamster
|