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