gotime-cassandra_object 4.5.0 → 4.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'gotime-cassandra_object'
5
- s.version = '4.5.0'
5
+ s.version = '4.5.1'
6
6
  s.description = 'Cassandra ActiveModel'
7
7
  s.summary = 'Cassandra ActiveModel'
8
8
  s.authors = ["Michael Koziarski", "gotime"]
@@ -46,7 +46,7 @@ module CassandraObject
46
46
  private
47
47
  def select_string
48
48
  if select_values.any?
49
- select_values * ','
49
+ (['KEY'] | select_values) * ','
50
50
  else
51
51
  '*'
52
52
  end
@@ -8,9 +8,7 @@ CassandraObject::Base.class_eval do
8
8
 
9
9
  def self.delete_after_test
10
10
  # created_records.reject(&:destroyed?).each(&:destroy)
11
- sleep 1
12
11
  Issue.delete_all
13
- ensure
14
12
  created_records.clear
15
13
  end
16
14
  end
@@ -2,12 +2,13 @@ require 'test_helper'
2
2
 
3
3
  class CassandraObject::Scope::QueryMethodsTest < CassandraObject::TestCase
4
4
  test "select" do
5
- issue = Issue.create title: 'foo', description: 'bar'
5
+ original_issue = Issue.create title: 'foo', description: 'bar'
6
6
 
7
- issue = Issue.select(:title).find(issue.id)
7
+ found_issue = Issue.select(:title).find(original_issue.id)
8
8
 
9
- assert_equal 'foo', issue.title
10
- assert_nil issue.description
9
+ assert_equal 'foo', found_issue.title
10
+ assert_equal original_issue.id, found_issue.id
11
+ assert_nil found_issue.description
11
12
  end
12
13
 
13
14
  test "select with block" do
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: 4.5.0
4
+ version: 4.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-25 00:00:00.000000000 Z
13
+ date: 2012-10-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel