{:name " /> {:name " /> {:name "/>

Error on ruby functional test

43 views Asked by At

This is my test

def test_create
  get :new    
  assert_template "admin/supplier/new"
  assert_difference 'Supplier.count' do
    post :create, :supplier => {:name => 'Juan', :province => 'provincia'}
    assert_response :redirect
    assert_redirected_to :action => 'index'      
  end
  assert_equal 'Supplier Juan was succesfully created.', flash[:notice]
end

when i execute it this is the error that it shows

test_create(Admin::SupplierControllerTest) [supplier_controller_test.rb:25]:
expecting <"admin/supplier/new"> but rendering with <"">

What is failing on assert_template "admin/supplier/new"??

0

There are 0 answers