Skip to content

Commit

Permalink
moves module
Browse files Browse the repository at this point in the history
  • Loading branch information
langalex committed Oct 15, 2015
1 parent 0af9165 commit 31a6325
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/couch_potato/rspec/stub_db.rb
Expand Up @@ -39,17 +39,17 @@ def stub_view(clazz, view, &block)
stub
end
end
end

module StubDb
include ::RSpec::Mocks::ExampleMethods
module StubDb
include ::RSpec::Mocks::ExampleMethods

def stub_db(options = {})
db = double(:db, options)
db.extend CouchPotato::RSpec::StubView
allow(self).to receive(:database) { db }
db
def stub_db(options = {})
db = double(:db, options)
db.extend CouchPotato::RSpec::StubView
allow(self).to receive(:database) { db }
db
end
end
end

CouchPotato.extend StubDb
::CouchPotato.extend StubDb
end

0 comments on commit 31a6325

Please sign in to comment.