Sha256: 9ea4d2c4e6db0d7bfda408962535fe5ec75fe5fece76d403902c8de1327e4845

Contents?: true

Size: 454 Bytes

Versions: 10

Compression:

Stored size: 454 Bytes

Contents

begin
  require 'spec'
rescue LoadError
  require 'rubygems'
  gem 'rspec'
  require 'spec'
end

$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'atom'

Spec::Runner.configure do |config|

  def mock_response(klass, body, headers = {})
    response = klass.new(nil, nil, nil)
    response.stub!(:body).and_return(body)
    
    headers.each do |k, v|
      response.stub!(:[]).with(k).and_return(v)
    end
    
    response
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ratom-0.3.0 spec/spec_helper.rb
ratom-0.3.3 spec/spec_helper.rb
ratom-0.2.2 spec/spec_helper.rb
ratom-0.3.4 spec/spec_helper.rb
ratom-0.3.5 spec/spec_helper.rb
ratom-0.3.1 spec/spec_helper.rb
ratom-0.3.6 spec/spec_helper.rb
ratom-0.3.2 spec/spec_helper.rb
ratom-0.2.1 spec/spec_helper.rb
ratom-0.3.7 spec/spec_helper.rb