Created
April 28, 2015 18:11
-
-
Save johnwake/a94a1d522daa75b87e61 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
describe Example do | |
context '.create' do | |
it 'receives a call to create method' do | |
expect(described_class.create).to | |
receive(create) | |
.with('something') | |
end | |
end | |
context '.example' do | |
it 'returns the example' do | |
expect(described_class.example).to eq('example') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment