gotime-cassandra_object 2.8.5 → 2.8.6
Sign up to get free protection for your applications and to get access to all the features.
- data/gotime-cassandra_object.gemspec +1 -1
- data/lib/cassandra_object/base.rb +1 -1
- data/test/unit/base_test.rb +13 -0
- data/test/unit/identity_test.rb +0 -12
- metadata +8 -8
data/test/unit/base_test.rb
CHANGED
@@ -23,6 +23,19 @@ class CassandraObject::BaseTest < CassandraObject::TestCase
|
|
23
23
|
assert !issue.destroyed?
|
24
24
|
end
|
25
25
|
|
26
|
+
test 'equality of new records' do
|
27
|
+
assert_not_equal Issue.new, Issue.new
|
28
|
+
end
|
29
|
+
|
30
|
+
test 'equality' do
|
31
|
+
first_issue = Issue.create
|
32
|
+
second_issue = Issue.create
|
33
|
+
|
34
|
+
assert_equal first_issue, first_issue
|
35
|
+
assert_equal first_issue, Issue.find(first_issue.id)
|
36
|
+
assert_not_equal first_issue, second_issue
|
37
|
+
end
|
38
|
+
|
26
39
|
test 'to_param' do
|
27
40
|
issue = Issue.create
|
28
41
|
assert_equal issue.id, issue.to_param
|
data/test/unit/identity_test.rb
CHANGED
@@ -14,18 +14,6 @@ class CassandraObject::IdentityTest < CassandraObject::TestCase
|
|
14
14
|
assert_equal issue.key.to_s, uuid
|
15
15
|
end
|
16
16
|
|
17
|
-
test 'equality of new records' do
|
18
|
-
assert_not_equal Issue.new, Issue.new
|
19
|
-
end
|
20
|
-
|
21
|
-
test 'equality' do
|
22
|
-
first_issue = Issue.create
|
23
|
-
second_issue = Issue.create
|
24
|
-
|
25
|
-
assert_equal first_issue, first_issue
|
26
|
-
assert_not_equal first_issue, second_issue
|
27
|
-
end
|
28
|
-
|
29
17
|
test 'parse_key' do
|
30
18
|
assert_kind_of(
|
31
19
|
CassandraObject::Identity::UUIDKeyFactory::UUID,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gotime-cassandra_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-11-
|
13
|
+
date: 2011-11-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
17
|
-
requirement: &
|
17
|
+
requirement: &70294538924840 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '3.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70294538924840
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: cassandra
|
28
|
-
requirement: &
|
28
|
+
requirement: &70294538924300 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 0.12.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70294538924300
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: bundler
|
39
|
-
requirement: &
|
39
|
+
requirement: &70294538923840 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: 1.0.0
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70294538923840
|
48
48
|
description: Cassandra ActiveModel
|
49
49
|
email: gems@gotime.com
|
50
50
|
executables: []
|