Sha256: 833f33a4d4538b894afed925683683f665fc85bade1eae2c2b774c89049bb96c
Contents?: true
Size: 1.01 KB
Versions: 6
Compression:
Stored size: 1.01 KB
Contents
require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start require 'yammer' require 'rspec' require 'rspec/autorun' require 'webmock/rspec' WebMock.disable_net_connect!(:allow => 'coveralls.io') RSpec.configure do |config| config.mock_with :rspec config.expect_with :rspec do |c| c.syntax = :expect end end def stub_delete(path='') stub_request(:delete, "https://www.yammer.com#{path}") end def stub_get(path='') stub_request(:get, "https://www.yammer.com#{path}") end def stub_post(path='') stub_request(:post, "https://www.yammer.com#{path}") end def stub_put(path='') stub_request(:put, "https://www.yammer.com#{path}") end def fixture_path File.expand_path("../fixtures", __FILE__) end def mock_path File.expand_path("../mocks", __FILE__) end def fixture(file) File.new("#{fixture_path}/#{file}") end def upload(file) File.new("#{mock_path}/#{file}") end
Version data entries
6 entries across 6 versions & 1 rubygems