Skip to content

Commit

Permalink
Fixed spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Dec 28, 2012
1 parent 6e28f1a commit ddebc90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/entities/contacts_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@

xhr :post, :create, :contact => { :first_name => "Billy", :last_name => "Bones" }, :account => { :name => "Hello world" }
assigns(:contact).should == @contact
assigns(:contact).account.name.should == "Hello world"
assigns(:contact).reload.account.name.should == "Hello world"
response.should render_template("contacts/create")
end

Expand Down

0 comments on commit ddebc90

Please sign in to comment.