Created
September 15, 2014 17:31
-
-
Save kwstannard/cac9baf6d63e57b2efb3 to your computer and use it in GitHub Desktop.
Module Testing without coupling
This file contains hidden or 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
RSpec.describe YourModule do | |
let(:includer) { Class.new.include(described_class).new } | |
describe "#hello_world" do | |
it "returns Hello World" do | |
expect(includer.hello_world). | |
to eq("Hello World") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment