Sha256: e72b6cbf93cc14db8ca3439e0f56e3003ff275845d169e0659a507ce98924528

Contents?: true

Size: 538 Bytes

Versions: 8

Compression:

Stored size: 538 Bytes

Contents

module Specjour::RSpec::Runner
  ::RSpec.configuration.backtrace_clean_patterns << %r(lib/specjour/)

  def self.run(spec, output)
    args = ['--format=Specjour::RSpec::DistributedFormatter', spec]
    ::RSpec::Core::Runner.run args, $stderr, output
  ensure
    ::RSpec.configuration.filter_manager = ::RSpec::Core::FilterManager.new
    ::RSpec.world.filtered_examples.clear
    ::RSpec.world.inclusion_filter.clear
    ::RSpec.world.exclusion_filter.clear
    ::RSpec.world.send(:instance_variable_set, :@line_numbers, nil)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
specjour-0.7.0 lib/specjour/rspec/runner.rb
specjour-0.6.6 lib/specjour/rspec/runner.rb
specjour-0.6.5 lib/specjour/rspec/runner.rb
specjour-0.6.4 lib/specjour/rspec/runner.rb
specjour-0.6.3 lib/specjour/rspec/runner.rb
specjour-0.6.2 lib/specjour/rspec/runner.rb
specjour-0.6.1 lib/specjour/rspec/runner.rb
specjour-0.6.0 lib/specjour/rspec/runner.rb