domain 1.0.0.rc3 → 1.0.0.rc4
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/domain.noespec +1 -1
- data/lib/domain/support/equalizer.rb +1 -1
- data/lib/domain/version.rb +1 -1
- data/spec/factory/scalar_domain/test_hash.rb +15 -2
- data/spec/support/test_equalizer.rb +4 -0
- metadata +2 -2
data/domain.noespec
CHANGED
data/lib/domain/version.rb
CHANGED
|
@@ -6,8 +6,21 @@ module Domain
|
|
|
6
6
|
|
|
7
7
|
subject{ point.hash }
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
context 'on an equivalent point, same class' do
|
|
10
|
+
let(:other){ Point.new(1, 2) }
|
|
11
|
+
|
|
12
|
+
specify{
|
|
13
|
+
point.hash.should eq(other.hash)
|
|
14
|
+
}
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
context 'on an equivalent point, subclass' do
|
|
18
|
+
let(:sub) { Class.new(Point) }
|
|
19
|
+
let(:other){ sub.new(1, 2) }
|
|
20
|
+
|
|
21
|
+
specify{
|
|
22
|
+
point.hash.should eq(other.hash)
|
|
23
|
+
}
|
|
11
24
|
end
|
|
12
25
|
|
|
13
26
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: domain
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0.
|
|
4
|
+
version: 1.0.0.rc4
|
|
5
5
|
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-10-
|
|
12
|
+
date: 2012-10-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|