spec/controllers/admin/posts_controller_spec.rb in enki-engine-0.0.4 vs spec/controllers/admin/posts_controller_spec.rb in enki-engine-0.0.5
- old
+ new
@@ -79,13 +79,13 @@
Time.stub!(:now).and_return(published_at)
do_put
end
- it 'it redirects to show' do
+ it 'it redirects to index' do
do_put
response.should be_redirect
- response.should redirect_to(admin_post_path(@post))
+ response.should redirect_to(admin_posts_path)
end
end
describe 'handling PUT to update with invalid attributes' do
before(:each) do
\ No newline at end of file