Sha256: 6d17e9394b4a9f05a05773ffc4a3e36880eac85ed7d57564df92357e006d654b
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
require 'helper' class OpenStructTest < Test::Unit::TestCase def from_db UserConfig.find(@config.id) end context "working with sets" do setup do @config = UserConfig.create!() end should "allow to add new keys" do entries = OpenStruct.new() entries.new_key = "my new key" @config.entries = entries @config.save from_db.entries["new_key"].should == "my new key" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid_ext-0.6.1 | test/types/test_open_struct.rb |