Skip to content

Commit

Permalink
Rename closed to close for Need API
Browse files Browse the repository at this point in the history
  • Loading branch information
bishboria authored and mnowster committed Mar 5, 2014
1 parent 168e407 commit 7810455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/gds_api/need_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def organisations
get_json!("#{endpoint}/organisations")["organisations"]
end

def closed(need_id, duplicate_of)
def close(need_id, duplicate_of)
# duplicate_of is a hash of the required fields for closing
# a need as a duplicate: { "duplicate_of" => 100001,
# "author" => { ... }
Expand Down
2 changes: 1 addition & 1 deletion test/need_api_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
duplicate_stub = stub_request(:put, @base_api_url + "/needs/100005/closed")
.with(body: fields.to_json)
.to_return(status: 204)
@api.closed(100005, fields)
@api.close(100005, fields)
assert_requested duplicate_stub
end
end
Expand Down

0 comments on commit 7810455

Please sign in to comment.