spec/spec_helper.rb in rubykhan-0.0.1 vs spec/spec_helper.rb in rubykhan-0.0.2
- old
+ new
@@ -11,15 +11,23 @@
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
\ No newline at end of file