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