unless ENV['CI'] require 'simplecov' SimpleCov.start do add_filter 'spec' end end require 'rspec' require 'rspec/autorun' require 'webmock/rspec' require 'yammer' 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 fixture(file) File.new("#{fixture_path}/#{file}") end