spec/spec_helper.rb in wisper-1.3.0 vs spec/spec_helper.rb in wisper-1.4.0
- old
+ new
@@ -1,25 +1,21 @@
-begin
- require 'simplecov'
- SimpleCov.start
-rescue LoadError
-end
+require 'coveralls'
+Coveralls.wear!
require 'wisper'
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.order = 'random'
config.after(:each) { Wisper::GlobalListeners.clear }
- # Support both Rspec2 should and Rspec3 expect syntax
config.expect_with :rspec do |c|
- c.syntax = [:should, :expect]
+ c.syntax = :expect
end
config.mock_with :rspec do |c|
- c.syntax = [:should, :expect]
+ c.syntax = :expect
end
end
# returns an anonymous wispered class
def publisher_class