diff --git a/spec/controllers/aspects_controller_spec.rb b/spec/controllers/aspects_controller_spec.rb index 6b0a7928abb8730788136c611d2377d711ca4e29..71725617b39dcb0b90a73162125702d48061bed5 100644 --- a/spec/controllers/aspects_controller_spec.rb +++ b/spec/controllers/aspects_controller_spec.rb @@ -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 diff --git a/spec/controllers/conversations_controller_spec.rb b/spec/controllers/conversations_controller_spec.rb index a84958672096e0e36979f99321f78ee2c1923763..b791c1cfbe991fcee02c5617ff123b7b8cbadb46 100644 --- a/spec/controllers/conversations_controller_spec.rb +++ b/spec/controllers/conversations_controller_spec.rb @@ -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