spec/shelly/client_spec.rb in shelly-0.0.22 vs spec/shelly/client_spec.rb in shelly-0.0.23
- old
+ new
@@ -123,13 +123,13 @@
response = @client.send_invitation("staging-foo", "megan@example.com")
response.should == {}
end
end
- describe "#update_ssh_key" do
+ describe "#add_ssh_key" do
it "should send put with give SSH key" do
- @client.should_receive(:put).with("/ssh_key", {:ssh_key => "abc"})
- @client.update_ssh_key("abc")
+ @client.should_receive(:post).with("/ssh_key", {:ssh_key => "abc"})
+ @client.add_ssh_key("abc")
end
end
describe "#apps" do
it "should send get requests for user's applications list" do