Skip to content
Browse files

Fix failing tests

  • Loading branch information...
1 parent 929dd96 commit cffb2b79cfc05bff6dd5be3c8536c57dbecc9154 @jphpsf committed
Showing with 8 additions and 8 deletions.
  1. +8 −8 spec/cli_spec.rb
View
16 spec/cli_spec.rb
@@ -672,13 +672,13 @@
before do
@cli.options = @cli.options.merge("profile" => fixture_path + "/.trc")
stub_get("/1/friendships/exists.json").
- with(:query => {:user_a => "ev", :user_b => "testcli"}).
+ with(:query => {:screen_name_a => "ev", :screen_name_b => "testcli"}).
to_return(:body => fixture("true.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@cli.does_follow("ev")
a_get("/1/friendships/exists.json").
- with(:query => {:user_a => "ev", :user_b => "testcli"}).
+ with(:query => {:screen_name_a => "ev", :screen_name_b => "testcli"}).
should have_been_made
end
it "should have the correct output" do
@@ -692,7 +692,7 @@
with(:query => {:user_id => "20"}).
to_return(:body => fixture("sferik.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_get("/1/friendships/exists.json").
- with(:query => {:user_a => "sferik", :user_b => "testcli"}).
+ with(:query => {:screen_name_a => "sferik", :screen_name_b => "testcli"}).
to_return(:body => fixture("true.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@@ -701,7 +701,7 @@
with(:query => {:user_id => "20"}).
should have_been_made
a_get("/1/friendships/exists.json").
- with(:query => {:user_a => "sferik", :user_b => "testcli"}).
+ with(:query => {:screen_name_a => "sferik", :screen_name_b => "testcli"}).
should have_been_made
end
end
@@ -720,7 +720,7 @@
with(:query => {:user_id => "428004849"}).
to_return(:body => fixture("sferik.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_get("/1/friendships/exists.json").
- with(:query => {:user_a => "sferik", :user_b => "sferik"}).
+ with(:query => {:screen_name_a => "sferik", :screen_name_b => "sferik"}).
to_return(:body => fixture("true.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@@ -732,7 +732,7 @@
with(:query => {:user_id => "428004849"}).
should have_been_made
a_get("/1/friendships/exists.json").
- with(:query => {:user_a => "sferik", :user_b => "sferik"}).
+ with(:query => {:screen_name_a => "sferik", :screen_name_b => "sferik"}).
should have_been_made
end
end
@@ -740,7 +740,7 @@
context "false" do
before do
stub_get("/1/friendships/exists.json").
- with(:query => {:user_a => "ev", :user_b => "testcli"}).
+ with(:query => {:screen_name_a => "ev", :screen_name_b => "testcli"}).
to_return(:body => fixture("false.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should exit" do
@@ -748,7 +748,7 @@
@cli.does_follow("ev")
end.should raise_error(SystemExit)
a_get("/1/friendships/exists.json").
- with(:query => {:user_a => "ev", :user_b => "testcli"}).
+ with(:query => {:screen_name_a => "ev", :screen_name_b => "testcli"}).
should have_been_made
end
end

0 comments on commit cffb2b7

Please sign in to comment.
Something went wrong with that request. Please try again.