Sha256: c9978fb0ec2df2d5a5761fdc2fe338c322f5b956b40d6d04b85845055cdfa7b0
Contents?: true
Size: 746 Bytes
Versions: 7
Compression:
Stored size: 746 Bytes
Contents
require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start require 'rubykhan' require 'rspec' require 'webmock/rspec' WebMock.disable_net_connect!(:allow => 'coveralls.io') RSpec.configure do |config| config.order = 'random' config.expect_with :rspec do |c| c.syntax = :expect end end def a_get(path) a_request(:get, 'http://www.khanacademy.org/api/v1/' + path) end def stub_get(path) stub_request(:get, 'http://www.khanacademy.org/api/v1/' + path) require 'json' end def fixture_path File.expand_path('../fixtures', __FILE__) end def fixture(file) File.new(fixture_path + '/' + file) end
Version data entries
7 entries across 7 versions & 1 rubygems