Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

worked on shared spec for adapter with search

  • Loading branch information...
commit 71d55c2c687a2da9a44f84602dc497608e6dacc3 1 parent 29a21a8
@phifty authored
View
2  gom.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |specification|
specification.name = "gom"
- specification.version = "0.5.1"
+ specification.version = "0.5.2"
specification.date = "2011-10-20"
specification.authors = [ "Philipp Brüll" ]
View
4 lib/gom/spec/acceptance/adapter_with_search.rb
@@ -12,7 +12,7 @@
before :each do
@object_one = GOM::Spec::Object.new
@object_one.number = 11
- @object_one.instance_variable_set :@nested, { :test => "value" }
+ @object_one.nested_object = [ { :test => "value" } ]
@object_two = GOM::Spec::Object.new
@object_two.number = 24
@@ -41,7 +41,7 @@
collection.size.should == 1
collection.map(&:class).should == [ GOM::Spec::Object ]
collection.map(&:number).should == [ 11 ]
- collection.map{ |object| object.instance_variable_get :@nested }.should == [ { :test => "value" } ]
+ collection.map(&:nested_object).should == [ [ { :test => "value" } ] ]
end
end
View
1  lib/gom/spec/object.rb
@@ -4,5 +4,6 @@ class GOM::Spec::Object
attr_accessor :number
attr_accessor :related_object
+ attr_accessor :nested_object
end
Please sign in to comment.
Something went wrong with that request. Please try again.