Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. test "should get destroy" do
  2. n = Supplier.count
  3. post :destroy, :id => 1
  4. assert_equal n - 1, Supplier.count
  5. assert_response :redirect
  6. assert_redirected_to :action => 'index'
  7. follow_redirect
  8. assert_tag :tag => 'div', :attributes => { :id => 'notice' },
  9. :content => '...'
  10. end
  11.  
  12. Admin::SupplierControllerTest#test_should_get_destroy:
  13. NameError: undefined local variable or method `follow_redirect'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement