Sha256: b8878db377b241bc295993b4629926d201761ea244512ed7b042aac1be989e29

Contents?: true

Size: 777 Bytes

Versions: 16

Compression:

Stored size: 777 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'supermodel'
require 'curb'
require 'threetaps-client'
require 'cgi'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  
end

def stub_json_decode
  ActiveSupport::JSON.stub!(:decode).and_return []
end

def stub_get_and_json_decode
  Curl::Easy.stub!(:new).and_return mock("Request", :perform => nil, :body_str => "")
  stub_json_decode
end

def stub_post_and_json_decode
  Curl::Easy.stub!(:http_post).and_return mock("Request", :perform => nil, :body_str => "")
  stub_json_decode
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
threetaps-client-1.0.14 spec/spec_helper.rb
threetaps-client-1.0.13 spec/spec_helper.rb
threetaps-client-1.0.12 spec/spec_helper.rb
threetaps-client-1.0.11 spec/spec_helper.rb
threetaps-client-1.0.10 spec/spec_helper.rb
threetaps-client-1.0.9 spec/spec_helper.rb
threetaps-client-1.0.8 spec/spec_helper.rb
threetaps-client-1.0.7 spec/spec_helper.rb
threetaps-client-1.0.6 spec/spec_helper.rb
threetaps-client-1.0.5 spec/spec_helper.rb
threetaps-client-1.0.4 spec/spec_helper.rb
threetaps-client-1.0.3 spec/spec_helper.rb
threetaps-client-1.0.2 spec/spec_helper.rb
threetaps-client-1.0.1 spec/spec_helper.rb
threetaps-client-1.0.0 spec/spec_helper.rb
threetaps-client-0.5.1 spec/spec_helper.rb