Skip to content
Extraits de code Groupes Projets
Valider 67e4f9e1 rédigé par Maxwell Salzberg's avatar Maxwell Salzberg
Parcourir les fichiers

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

parent 7036c825
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -108,8 +108,6 @@ describe AspectsController do ...@@ -108,8 +108,6 @@ describe AspectsController do
it "should return the name and id of the updated item" do it "should return the name and id of the updated item" do
params = {"name" => "Bruisers"} params = {"name" => "Bruisers"}
put('update', :id => @alices_aspect_1.id, "aspect" => params) put('update', :id => @alices_aspect_1.id, "aspect" => params)
puts( response.inspect )
response.body.should == { :id => @alices_aspect_1.id, :name => "Bruisers" }.to_json response.body.should == { :id => @alices_aspect_1.id, :name => "Bruisers" }.to_json
end end
end end
......
...@@ -53,7 +53,8 @@ describe ConversationsController do ...@@ -53,7 +53,8 @@ describe ConversationsController do
it 'succeeds with json' do it 'succeeds with json' do
get :index, :format => :json get :index, :format => :json
response.should be_success response.should be_success
response.body.should =~ @conversations.to_json json = JSON.parse(response.body)
json.first['conversation'].should be_present
end end
it 'retrieves all conversations for a user' do it 'retrieves all conversations for a user' do
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter