Don't test for nonexistent instance variable

This commit is contained in:
Raphael Sofaer 2011-05-03 11:19:27 -07:00
parent f89b6ae5be
commit 45c5cd4b95

View file

@ -14,8 +14,8 @@ describe ConversationsController do
it 'succeeds' do
response.should be_success
end
it "assigns a list of the user's contacts" do
assigns(:all_contacts_and_ids).should == alice.contacts.collect{|c| {"value" => c.id, "name" => c.person.name}}
it "assigns a json list of contacts" do
assigns(:contacts_json).should include(alice.contacts.first.person.name)
end
it "assigns a contact if passed a contact id" do
get :new, :contact_id => alice.contacts.first.id