Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorHP committed Apr 20, 2015
1 parent 53febb3 commit 9a326c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/requests/javascript_api_spec.rb
Expand Up @@ -201,9 +201,9 @@ def show_topic(site_key, topic_key, options = {})
end

describe "add_comment" do
it "returns an error if a required parameter is blank" do
it "returns an error if a required parameter is blank", focus: true do
post '/api/add_comment.js', :site_key => ''
response.body.should include("The required parameter <code>site_key</code> wasn't given")
response.body.should include("<h1>API invocation error</h1>\nThe required parameter <code>site_key</code> wasn't given.\n".to_json)
end
end
end
Expand Down

0 comments on commit 9a326c0

Please sign in to comment.