Sha256: 33662051a867af1ae6f06f913cedd60f2e6cea1dd5d44a2a6b63fd1b20ccb274
Contents?: true
Size: 1 KB
Versions: 3
Compression:
Stored size: 1 KB
Contents
require 'test/unit' require 'pathname' require 'rubygems' gem 'thoughtbot-shoulda', '>= 2.10.1' gem 'jnunemaker-matchy', '0.4.0' gem 'mocha', '0.9.7' gem 'fakeweb', '>= 1.2.5' gem 'redgreen', '>= 1.0.0' require 'shoulda' require 'matchy' require 'mocha' require 'fakeweb' require 'redgreen' if ENV['TM_FILENAME'].nil? dir = (Pathname(__FILE__).dirname + '../lib').expand_path require dir + 'giggly' require 'fake_socialize' puts "Disabling net connections." FakeWeb.allow_net_connect = false class Test::Unit::TestCase custom_matcher :be_successful do |receiver, matcher, args| args[0] ||= {"statusCode" => "200"} !!args[0].each { |k,v| break false unless receiver[k] == v } end def setup_giggly_rest @request = Giggly::Rest::Request.new( :api_key => 'TEST_KEY', :secret_key => 'SECRET_KEY', :user_id => 'GIGYA_USER_ID' ) @giggly = Giggly::Rest::Socialize.new(@request) @giggly.request.stubs(:sign).returns({}) # to make fakeweb not be so slow end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
giggly-0.1.2 | test/test_helper.rb |
giggly-0.1.1 | test/test_helper.rb |
giggly-0.1.0 | test/test_helper.rb |