test/test_helper.rb in mls-0.9.9 vs test/test_helper.rb in mls-0.11.0
- old
+ new
@@ -6,18 +6,18 @@
require 'mls'
require 'turn'
require 'faker'
require 'test/unit'
-require 'factory_girl'
require 'fakeweb'
-CACHE = {}
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__),'../'))
+require 'lib/mls/factories_helper'
+
MLS_HOST = ENV['MLS_URL'] || 'http://localhost:4000/api'
-FactoryGirl.find_definitions
-MLS.url = ENV["MLS_TEST_URL"] || 'http://LBJXFC%2BhDiRRCYj6kXtXREfgNXRCJa8ALvPn%2FIeyjSe2QsQyHZ%2F%2BWwN2VZM2cw%3D%3D@localhost:4000'#
+MLS.url = ENV["MLS_TEST_URL"] || 'http://LBJXFC%2BhDiRRCYj6kXtXREfgNXRCJa8ALvPn%2FIeyjSe2QsQyHZ%2F%2BWwN2VZM2cw%3D%3D@localhost:5000'#
# MLS.auth_key = MLS::Account.authenticate('jonbracy@gmail.com', 'test').auth_key
# File 'lib/active_support/testing/declarative.rb', somewhere in rails....
class ::Test::Unit::TestCase
def self.test(name, &block)
@@ -41,6 +41,6 @@
when :get
Net::HTTP.get_response(uri)
when :post
Net::HTTP.post_form(uri)
end
-end
\ No newline at end of file
+end