spec/shelly/client_spec.rb in shelly-0.0.19 vs spec/shelly/client_spec.rb in shelly-0.0.20.pre

- old
+ new

@@ -109,21 +109,20 @@ describe "#app_users" do it "should send post with app code_names" do FakeWeb.register_uri(:get, @url + "/apps/staging-foo/users", :body => {:code_name => "staging-foo"}.to_json) FakeWeb.register_uri(:get, @url + "/apps/production-foo/users", :body => {:code_name => "production-foo"}.to_json) - response = @client.app_users(["staging-foo", "production-foo"]) - response.should == [{"code_name" => "staging-foo"}, - {"code_name" => "production-foo"}] + response = @client.apps_users(["staging-foo", "production-foo"]) + response.should == [{"code_name" => "staging-foo"}, {"code_name" => "production-foo"}] end end describe "#send_invitation" do it "should send post with developer's email" do FakeWeb.register_uri(:post, @url + "/apps/staging-foo/collaborations", :body => {}.to_json) FakeWeb.register_uri(:post, @url + "/apps/production-foo/collaborations", :body => {}.to_json) - response = @client.send_invitation(["staging-foo", "production-foo"], "megan@example.com") - response.should == [{}, {}] + response = @client.send_invitation("staging-foo", "megan@example.com") + response.should == {} end end describe "#update_ssh_key" do it "should send put with give SSH key" do