Hello champs,

I have been writing  a functional test in which i create a new record
and finds out that the record is porperly created or not. So i do it
like this:-

def test_should_create_record
  assert_difference('ABC.count') do
    post :method_name, :abc => {
                       :name => "Abc",
                       :email  => "a...@gmail.com",
                       :phone => "+91234567899"
    }
    assert_equal "Please select abc first", flash[:notice]
  end
end

IN development, if i create any record with these parameter, it gets
created. But IN test phase, it is giving me error that ::
---
ActionView::MissingTemplate: Missing template abc/method_name.erb in
view path app/views
---

How to tackle with it.. ? By request.env['HTTP_REFERER'] or what .. ?
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to