Skip to content

Instantly share code, notes, and snippets.

@durran
Created January 8, 2010 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save durran/272334 to your computer and use it in GitHub Desktop.
Save durran/272334 to your computer and use it in GitHub Desktop.
context "when document contains a hash field" do
before do
@map = { "first" => 10, "second" => "Blah" }
@person = Person.create(:map => @map)
end
it "properly gets and sets the has attributes" do
@person.map.should == @map
@from_db = Person.find(@person.id)
@from_db.map.should == @map
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment