Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created December 14, 2018 10:26
Show Gist options
  • Save marzdgzmn/80c36df582ca10199a2b434cc343b676 to your computer and use it in GitHub Desktop.
Save marzdgzmn/80c36df582ca10199a2b434cc343b676 to your computer and use it in GitHub Desktop.
module Foo
module Bar
module Database
DB = Foo::Bar.configuration.database
def update_result(name, status)
# do something
end
end
end
end
module Foo
module Bar
RSpec.describe Database do
let(:dummy) { Class.new { include Database } }
it 'test1' do
dummy.update_result('myname', 'success')
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment