remove puts and fix a conversationscontroller spec to be a bit more predictable
This commit is contained in:
parent
7036c82562
commit
67e4f9e159
2 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue