remove puts and fix a conversationscontroller spec to be a bit more predictable

This commit is contained in:
Maxwell Salzberg 2012-03-03 16:25:10 -08:00
parent 7036c82562
commit 67e4f9e159
2 changed files with 2 additions and 3 deletions

View file

@ -108,8 +108,6 @@ describe AspectsController do
it "should return the name and id of the updated item" do
params = {"name" => "Bruisers"}
put('update', :id => @alices_aspect_1.id, "aspect" => params)
puts( response.inspect )
response.body.should == { :id => @alices_aspect_1.id, :name => "Bruisers" }.to_json
end
end

View file

@ -53,7 +53,8 @@ describe ConversationsController do
it 'succeeds with json' do
get :index, :format => :json
response.should be_success
response.body.should =~ @conversations.to_json
json = JSON.parse(response.body)
json.first['conversation'].should be_present
end
it 'retrieves all conversations for a user' do