Sha256: ce65d434077b069214f1e4fde9fd5a1f2bcc72ebfcbf5bc7c77af07d6de97298
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
module ReclinerHelpers def save_with_stubbed_database(subject) @database = mock('database', :put => { 'id' => 'document-id', 'rev' => '1-12345' }) subject.stub!(:database).and_return(@database) subject.save end def save_with_stubbed_database!(subject) @database = mock('database', :put => { 'id' => 'document-id', 'rev' => '1-12345' }) subject.stub!(:database).and_return(@database) subject.save! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
recliner-0.0.1 | spec/support/helpers/recliner_helpers.rb |