Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replace FakeWeb with WebMock

  • Loading branch information...
commit 55fc4314403fdc4a25e2d79a2a6b5754886c9485 1 parent 7f69db7
@sferik sferik authored
View
1  Gemfile
@@ -43,7 +43,6 @@ group :test do
gem 'cucumber-rails'
gem 'database_cleaner'
gem 'factory_girl_rails'
- gem 'fakeweb'
gem 'launchy'
gem 'nokogiri'
gem 'rack-test', :require => 'rack/test'
View
2  Gemfile.lock
@@ -68,7 +68,6 @@ GEM
factory_girl_rails (1.0.1)
factory_girl (~> 1.3)
railties (>= 3.0.0)
- fakeweb (1.3.0)
ffi (1.0.9)
ffi (1.0.9-java)
fog (0.9.0)
@@ -189,7 +188,6 @@ DEPENDENCIES
database_cleaner
delayed_job
factory_girl_rails
- fakeweb
fog
gchartrb
gravtastic
View
4 features/step_definitions/api_steps.rb
@@ -47,9 +47,7 @@
subdomain = rubygem.versions.latest.rubyforge_project
- FakeWeb.register_uri(:get,
- "http://#{subdomain}.rubyforge.org/migrate-#{name}.html",
- :body => token)
+ WebMock.stub_request(:get, "http://#{subdomain}.rubyforge.org/migrate-#{name}.html")
visit migrate_path(:rubygem_id => rubygem.to_param), :put
end
View
2  features/support/env.rb
@@ -6,6 +6,8 @@
require 'cucumber/rails'
+require 'webmock/cucumber'
+
# Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In
# order to ease the transition to Capybara we set the default here. If you'd
# prefer to use XPath just remove this line and adjust any selectors in your
View
BIN  vendor/cache/fakeweb-1.3.0.gem
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.