Skip to content

Commit

Permalink
Fix failing get_iteration_count
Browse files Browse the repository at this point in the history
  • Loading branch information
detunized committed Feb 5, 2017
1 parent b67ece4 commit 8118db1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lastpass/fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def self.fetch session, web_client = http

def self.request_iteration_count username, web_client = http
response = web_client.post "https://lastpass.com/iterations.php",
query: {email: username}
body: {email: username}

raise NetworkError unless response.response.is_a? Net::HTTPOK

Expand Down
2 changes: 1 addition & 1 deletion spec/fetcher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
describe ".request_iteration_count" do
it "makes a POST request" do
expect(web_client = double("web_client")).to receive(:post)
.with("https://lastpass.com/iterations.php", query: {email: username})
.with("https://lastpass.com/iterations.php", body: {email: username})
.and_return(http_ok(key_iteration_count.to_s))

LastPass::Fetcher.request_iteration_count username, web_client
Expand Down

0 comments on commit 8118db1

Please sign in to comment.