From cb26e0576db7fbfc0b6fc036a868fea030b43163 Mon Sep 17 00:00:00 2001 From: Kostyantyn Date: Sun, 30 Mar 2014 21:54:19 +0200 Subject: [PATCH] PostgreSQL fix --- spec/hydra_attribute/active_record_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/hydra_attribute/active_record_spec.rb b/spec/hydra_attribute/active_record_spec.rb index c035556..43a870d 100644 --- a/spec/hydra_attribute/active_record_spec.rb +++ b/spec/hydra_attribute/active_record_spec.rb @@ -74,7 +74,7 @@ expect(Room.count).to be(0) query = HydraAttribute::HydraValue.arel_tables[Room.table_name]['integer'].project(Arel.star.count) - count = ActiveRecord::Base.connection.select_value(query) + count = ActiveRecord::Base.connection.select_value(query).to_i expect(count).to be(0) end end