Created
March 18, 2013 19:38
-
-
Save romulostorel/5190174 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 '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