spec/spec_helper.rb in yammer-client-0.1.0 vs spec/spec_helper.rb in yammer-client-0.1.1
- old
+ new
@@ -1,17 +1,21 @@
-unless ENV['CI']
- require 'simplecov'
- SimpleCov.start do
- add_filter 'spec'
- end
-end
+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'
-require 'yammer'
+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
@@ -37,6 +41,6 @@
File.expand_path("../fixtures", __FILE__)
end
def fixture(file)
File.new("#{fixture_path}/#{file}")
-end
\ No newline at end of file
+end