Sha256: d5f681abab6c8a8990e64b888a6fefacf662718be6792a1c97bf604eba0ec541
Contents?: true
Size: 512 Bytes
Versions: 4
Compression:
Stored size: 512 Bytes
Contents
shared_context 'a new database' do # Create a temporary folder and initialize a database in it. before(:all) do @directory = within_temporary_directory @database = RbPod::Database.create!(@directory) end # This is a godawful hack, but it's needed to clean up after the tests finish. after(:all) do FileUtils.remove_entry_secure(@directory) end # Temporary directory for database. let(:directory) { @directory } # The database instance itself. let(:database) { @database } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rbpod-0.0.8 | spec/support/shared_contexts.rb |
rbpod-0.0.7 | spec/support/shared_contexts.rb |
rbpod-0.0.6 | spec/support/shared_contexts.rb |
rbpod-0.0.5 | spec/support/shared_contexts.rb |