Sha256: e529457e1f2444e9e62d51a819fa72ba105d513a490d7f0b9f871d941d85b011

Contents?: true

Size: 782 Bytes

Versions: 47

Compression:

Stored size: 782 Bytes

Contents

require 'spec/runner/formatter/base_text_formatter'

module Spec
  module Runner
    module Formatter
      class FailingExampleGroupsFormatter < BaseTextFormatter
        def example_failed(example, counter, failure)
          if @example_group
            description_parts = @example_group.description_parts.collect do |description|
              description =~ /(.*) \(druby.*\)$/ ? $1 : description
            end
            @output.puts ::Spec::Example::ExampleGroupMethods.description_text(*description_parts)

            @output.flush
            @example_group = nil
          end
        end

        def dump_failure(counter, failure)
        end

        def dump_summary(duration, example_count, failure_count, pending_count)
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 10 rubygems

Version Path
dchelimsky-rspec-1.1.10 lib/spec/runner/formatter/failing_example_groups_formatter.rb
dchelimsky-rspec-1.1.11.1 lib/spec/runner/formatter/failing_example_groups_formatter.rb
dchelimsky-rspec-1.1.11.2 lib/spec/runner/formatter/failing_example_groups_formatter.rb
dchelimsky-rspec-1.1.11.3 lib/spec/runner/formatter/failing_example_groups_formatter.rb
dchelimsky-rspec-1.1.11.4 lib/spec/runner/formatter/failing_example_groups_formatter.rb
dchelimsky-rspec-1.1.11.5 lib/spec/runner/formatter/failing_example_groups_formatter.rb
dchelimsky-rspec-1.1.11.6 lib/spec/runner/formatter/failing_example_groups_formatter.rb
dchelimsky-rspec-1.1.11.7 lib/spec/runner/formatter/failing_example_groups_formatter.rb
dchelimsky-rspec-1.1.11 lib/spec/runner/formatter/failing_example_groups_formatter.rb
dchelimsky-rspec-1.1.12 lib/spec/runner/formatter/failing_example_groups_formatter.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/lib/spec/runner/formatter/failing_example_groups_formatter.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/lib/spec/runner/formatter/failing_example_groups_formatter.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/lib/spec/runner/formatter/failing_example_groups_formatter.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/lib/spec/runner/formatter/failing_example_groups_formatter.rb
newbamboo-evented-rspec-1.1.12 lib/spec/runner/formatter/failing_example_groups_formatter.rb
newbamboo-rspec-1.1.12 lib/spec/runner/formatter/failing_example_groups_formatter.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/failing_example_groups_formatter.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/failing_example_groups_formatter.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/failing_example_groups_formatter.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/formatter/failing_example_groups_formatter.rb