Skip to content

Instantly share code, notes, and snippets.

@johnwake
Created April 28, 2015 18:11
Show Gist options
  • Save johnwake/a94a1d522daa75b87e61 to your computer and use it in GitHub Desktop.
Save johnwake/a94a1d522daa75b87e61 to your computer and use it in GitHub Desktop.
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