Sha256: 83adf82d7e1044e5579b891326c06c396840929eb7a85ca58c2a6d64c6efaa61

Contents?: true

Size: 1.26 KB

Versions: 11

Compression:

Stored size: 1.26 KB

Contents

# Configure Rails Envinronment
ENV['RAILS_ENV'] = 'test'

require 'simplecov'
require 'simplecov-summary'
require 'coveralls'

# require "codeclimate-test-reporter"
formatters = [SimpleCov::Formatter::HTMLFormatter]

formatters << Coveralls::SimpleCov::Formatter # if ENV['TRAVIS']
# formatters << CodeClimate::TestReporter::Formatter # if ENV['CODECLIMATE_REPO_TOKEN'] && ENV['TRAVIS']

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[*formatters]

Coveralls.wear!
SimpleCov.start 'rails' do
  add_filter 'spec'

  at_exit {}
end

# CodeClimate::TestReporter.configure do |config|
#  config.logger.level = Logger::WARN
# end
# CodeClimate::TestReporter.start

require 'bundler/setup'
require 'celluloid_pubsub'

RSpec.configure do |config|
  require 'rspec/expectations'
  config.include RSpec::Matchers

  config.mock_with :mocha

  config.after(:suite) do
    if SimpleCov.running
      silence_stream(STDOUT) do
        SimpleCov::Formatter::HTMLFormatter.new.format(SimpleCov.result)
      end

      SimpleCov::Formatter::SummaryFormatter.new.format(SimpleCov.result)
    end
  end
end


# class used for testing actions
class TestActor
  include CelluloidPubsub::BaseActor
end

CelluloidPubsub::BaseActor.setup_actor_supervision(TestActor, actor_name: :test_actor, args: { })

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
celluloid_pubsub-0.8.0 spec/spec_helper.rb
celluloid_pubsub-0.7.9 spec/spec_helper.rb
celluloid_pubsub-0.7.8 spec/spec_helper.rb
celluloid_pubsub-0.7.7 spec/spec_helper.rb
celluloid_pubsub-0.7.6 spec/spec_helper.rb
celluloid_pubsub-0.7.5 spec/spec_helper.rb
celluloid_pubsub-0.7.4 spec/spec_helper.rb
celluloid_pubsub-0.7.3 spec/spec_helper.rb
celluloid_pubsub-0.7.2 spec/spec_helper.rb
celluloid_pubsub-0.7.1 spec/spec_helper.rb
celluloid_pubsub-0.7.0 spec/spec_helper.rb