Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move fakeweb parts to file

  • Loading branch information...
commit c942764204bd9ea3137cf4fd8c1b4891a56d0ec6 1 parent 9316040
@brain-geek authored
Showing with 8 additions and 11 deletions.
  1. +6 −0 test/support/requests.rb
  2. +2 −11 test/test_helper.rb
View
6 test/support/requests.rb
@@ -0,0 +1,6 @@
+require 'fakeweb'
+
+FakeWeb.allow_net_connect = false
+FakeWeb.register_uri(:get, "http://localhost:9595", :body => 'Up and running!', :status => 200)
+FakeWeb.register_uri(:get, "http://localhost:9595/fail", :body => 'Omg fail', :status => 500)
+FakeWeb.register_uri(:get, "http://localhost:9595/warning", :body => 'Omg need payment', :status => 402)
View
13 test/test_helper.rb
@@ -8,6 +8,7 @@
require 'minitest/autorun'
# Integration test helpers
+require 'support/requests'
require 'support/stubs'
require 'support/nothing_raised'
@@ -17,14 +18,4 @@
require 'outpost/scouts'
include Support::Stubs
-include Support::NothingRaised
-
-
-#moveme to other file!
-
-require 'fakeweb'
-
-FakeWeb.allow_net_connect = false
-FakeWeb.register_uri(:get, "http://localhost:9595", :body => 'Up and running!', :status => 200)
-FakeWeb.register_uri(:get, "http://localhost:9595/fail", :body => 'Omg fail', :status => 500)
-FakeWeb.register_uri(:get, "http://localhost:9595/warning", :body => 'Omg need payment', :status => 402)
+include Support::NothingRaised
Please sign in to comment.
Something went wrong with that request. Please try again.