Skip to content

Instantly share code, notes, and snippets.

@romulostorel
Created March 18, 2013 19:38
Show Gist options
  • Save romulostorel/5190174 to your computer and use it in GitHub Desktop.
Save romulostorel/5190174 to your computer and use it in GitHub Desktop.
describe 'POST create' do
context 'setting status' do
let :entidade do
Entidade.make!(:entidade)
end
it 'should set the status' do
post :create, :entidade => entidade.attributes
entidade.stub(:status).and_return 'calculated'
it { should redirect_to rota_a_redirecionar }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment