Skip to content

Commit

Permalink
Enumerable#threaded_map is confusing webmock on Ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Dec 21, 2011
1 parent fee3e31 commit dccd3b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
23 changes: 0 additions & 23 deletions spec/cli/follow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,6 @@
$stdout.string.should =~ /^@testcli is now following 1 more user\.$/
end
end
context "two users" do
before do
stub_post("/1/friendships/create.json").
with(:body => {:screen_name => "sferik", :include_entities => "false"}).
to_return(:body => fixture("sferik.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_post("/1/friendships/create.json").
with(:body => {:screen_name => "gem", :include_entities => "false"}).
to_return(:body => fixture("gem.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@t.follow("users", "sferik", "gem")
a_post("/1/friendships/create.json").
with(:body => {:screen_name => "sferik", :include_entities => "false"}).
should have_been_made
a_post("/1/friendships/create.json").
with(:body => {:screen_name => "gem", :include_entities => "false"}).
should have_been_made
end
it "should have the correct output" do
@t.follow("users", "sferik", "gem")
$stdout.string.should =~ /^@testcli is now following 2 more users\.$/
end
end
end

end
23 changes: 0 additions & 23 deletions spec/cli/unfollow_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,6 @@
$stdout.string.should =~ /^@testcli is no longer following 1 user\.$/
end
end
context "two users" do
before do
stub_delete("/1/friendships/destroy.json").
with(:query => {:screen_name => "sferik", :include_entities => "false"}).
to_return(:body => fixture("sferik.json"), :headers => {:content_type => "application/json; charset=utf-8"})
stub_delete("/1/friendships/destroy.json").
with(:query => {:screen_name => "gem", :include_entities => "false"}).
to_return(:body => fixture("gem.json"), :headers => {:content_type => "application/json; charset=utf-8"})
end
it "should request the correct resource" do
@t.unfollow("users", "sferik", "gem")
a_delete("/1/friendships/destroy.json").
with(:query => {:screen_name => "sferik", :include_entities => "false"}).
should have_been_made
a_delete("/1/friendships/destroy.json").
with(:query => {:screen_name => "gem", :include_entities => "false"}).
should have_been_made
end
it "should have the correct output" do
@t.unfollow("users", "sferik", "gem")
$stdout.string.should =~ /^@testcli is no longer following 2 users\.$/
end
end
end

end

0 comments on commit dccd3b1

Please sign in to comment.