Don't test for nonexistent instance variable
This commit is contained in:
parent
f89b6ae5be
commit
45c5cd4b95
1 changed files with 2 additions and 2 deletions
|
|
@ -14,8 +14,8 @@ describe ConversationsController do
|
||||||
it 'succeeds' do
|
it 'succeeds' do
|
||||||
response.should be_success
|
response.should be_success
|
||||||
end
|
end
|
||||||
it "assigns a list of the user's contacts" do
|
it "assigns a json list of contacts" do
|
||||||
assigns(:all_contacts_and_ids).should == alice.contacts.collect{|c| {"value" => c.id, "name" => c.person.name}}
|
assigns(:contacts_json).should include(alice.contacts.first.person.name)
|
||||||
end
|
end
|
||||||
it "assigns a contact if passed a contact id" do
|
it "assigns a contact if passed a contact id" do
|
||||||
get :new, :contact_id => alice.contacts.first.id
|
get :new, :contact_id => alice.contacts.first.id
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue