Skip to content

Commit

Permalink
Updated test helper w/proper gem requires.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthooks committed Feb 8, 2012
1 parent 3485e58 commit 2ca0b90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_helper.rb
@@ -1,7 +1,7 @@
require 'rubygems'
require 'test/unit'

gem 'thoughtbot-shoulda', ">= 2.10.2"
gem 'shoulda', ">= 2.10.2"
gem 'fakeweb', ">= 1.2.6"
gem 'crack', ">= 0.1.4"
gem 'mocha', ">= 0.9.8"
Expand Down Expand Up @@ -43,7 +43,7 @@ def advanced_vimeo_url(url = "")
end

def stub_get(url, filename, status=nil)
# FIXME: We have to specify content type, otherwise HTTParty will not parse the
# FIXME: We have to specify content type, otherwise HTTParty will not parse the
# body correctly. Is there any way we can get around this? Or is this a limitation
# of using FakeWeb?
options = { :body => fixture_file(filename), :content_type => 'application/json' }
Expand All @@ -61,4 +61,4 @@ def stub_custom_get(url, filename)

def stub_custom_post(url, filename)
FakeWeb.register_uri(:post, vimeo_base_url(url), :body => fixture_file(filename), :content_type => 'application/json')
end
end

0 comments on commit 2ca0b90

Please sign in to comment.