Created
December 14, 2018 10:26
-
-
Save marzdgzmn/80c36df582ca10199a2b434cc343b676 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Foo | |
module Bar | |
module Database | |
DB = Foo::Bar.configuration.database | |
def update_result(name, status) | |
# do something | |
end | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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