Skip to content

Commit

Permalink
Simplify fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
englishm committed Aug 29, 2011
1 parent acea88d commit bc246cc
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 28 deletions.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion spec/fixtures/settings_GET.json

This file was deleted.

25 changes: 0 additions & 25 deletions spec/fixtures/settings_GET.xml

This file was deleted.

4 changes: 2 additions & 2 deletions spec/twitter/client/account_spec.rb
Expand Up @@ -191,10 +191,10 @@

before do
stub_get("account/settings.#{format}").
to_return(:body => fixture("settings_GET.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
to_return(:body => fixture("settings.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
stub_post("account/settings.#{format}").
with(:body => {:trend_location_woeid => "23424803"}).
to_return(:body => fixture("settings_POST.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
to_return(:body => fixture("settings.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
end

it "should get the correct resource on GET" do
Expand Down

0 comments on commit bc246cc

Please sign in to comment.