Skip to content

Instantly share code, notes, and snippets.

@jlogsdon
Created March 9, 2012 18:05
Show Gist options
  • Save jlogsdon/2007804 to your computer and use it in GitHub Desktop.
Save jlogsdon/2007804 to your computer and use it in GitHub Desktop.
describe MyStateMachine do
describe '#pending?' do
context 'when the state is pending'
context 'when the state is approved'
context 'when the state is rejected'
end
describe '#approved?' do
context 'when the state is pending'
context 'when the state is approved'
context 'when the state is rejected'
end
describe '#rejected?' do
context 'when the state is pending'
context 'when the state is approved'
context 'when the state is rejected'
end
end
describe MyStateMachine do
context 'when the state is pending' do
describe '#pending?'
describe '#approved?'
describe '#rejected?'
end
context 'when the state is approved' do
describe '#pending?'
describe '#approved?'
describe '#rejected?'
end
context 'when the state is rejected' do
describe '#pending?'
describe '#approved?'
describe '#rejected?'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment