Skip to content

Instantly share code, notes, and snippets.

@certainty
Last active August 29, 2015 13:56
Show Gist options
  • Save certainty/8931150 to your computer and use it in GitHub Desktop.
Save certainty/8931150 to your computer and use it in GitHub Desktop.
Simplified example
module Reader
def load_hotels
[Hotel.new]
end
end
class Hotel
extend Reader
end
describe "Example" do
it "works as expected" do
expect(Hotel.load_hotels).to have(expected_number_of_hotels).hotels
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment