Sha256: d05cf4d9efbc2d88a35ff1d7994bb8cc8ad355c6418bf1575b92dad01d0b3307
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
require File.join(File.dirname(__FILE__), "spec_helper") require 'ruby-debug' class SharedResourceSpecTester extend VirtualMonkey::SharedSimpleExt include VirtualMonkey::SharedSimpleInc def self.resource_name "shared_resource_spec_tester" end end describe SharedResourceSpecTester, "Using sdb to store shared resources" do it "CRUD test" do SharedResourceSpecTester.destroy_all x = SharedResourceSpecTester.create(:tag => "sometag") y = SharedResourceSpecTester.create(:tag => "sometag2") x.tag.should == ["sometag"] x.destroy collection = SharedResourceSpecTester.all collection.first.tag.should == ["sometag2"] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
virtualmonkey-0.0.1 | spec/shared_resources_spec.rb |