Sha256: 055f7890a13d42673ab9783ea224ac24df2e0d8fd3892ddc4e1ddd1bef68317b
Contents?: true
Size: 741 Bytes
Versions: 4
Compression:
Stored size: 741 Bytes
Contents
# # Specifying rufus-tokyo # # Thu Sep 24 10:59:39 JST 2009 # shared 'a Tyrant structure (no transactions)' do it 'should raise NoMethodError on transactions' do ex = nil begin (@db || @t).transaction {} rescue Exception => e ex = e end ex.class.should.equal(NoMethodError) ex.message.should.match(/ support /) end end shared 'a Tyrant structure (copy method)' do it 'should accept #copy calls' do SOURCE = 'tmp/tyrant.tch' TARGET = File.expand_path( File.join(File.dirname(__FILE__), '../tmp/tyrant_copy.tch')) @db.copy(TARGET) File.exist?(TARGET).should.be.true File.stat(TARGET).size.should.equal(File.stat(SOURCE).size) FileUtils.rm(TARGET) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rufus-tokyo-1.0.7 | spec/shared_tyrant_spec.rb |
rufus-tokyo-1.0.6 | spec/shared_tyrant_spec.rb |
rufus-tokyo-1.0.5 | spec/shared_tyrant_spec.rb |
rufus-tokyo-1.0.4 | spec/shared_tyrant_spec.rb |