Sha256: a85e996948191e491c548da9e5fdf5b482420b28effedd81023270f17a96a457

Contents?: true

Size: 563 Bytes

Versions: 11

Compression:

Stored size: 563 Bytes

Contents

#
# Creates the full description for an example group
#
module Pact
  module Consumer
    module RSpec
      class FullExampleDescription

        def initialize example
          @example = example
        end

        def parent_group_descriptions
          @example.example.example_group.parent_groups.collect(&:description).reverse
        end

        def example_description
          @example.example.description
        end

        def to_s
          (parent_group_descriptions + [example_description]).join(" ")
        end

      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pact-1.0.39 lib/pact/consumer/rspec/full_example_description.rb
pact-1.1.0.rc2 lib/pact/consumer/rspec/full_example_description.rb
pact-1.0.38 lib/pact/consumer/rspec/full_example_description.rb
pact-1.1.0.rc1 lib/pact/consumer/rspec/full_example_description.rb
pact-1.0.37 lib/pact/consumer/rspec/full_example_description.rb
pact-1.0.36 lib/pact/consumer/rspec/full_example_description.rb
pact-1.0.35 lib/pact/consumer/rspec/full_example_description.rb
pact-1.0.34 lib/pact/consumer/rspec/full_example_description.rb
pact-1.0.33 lib/pact/consumer/rspec/full_example_description.rb
pact-1.0.32 lib/pact/consumer/rspec/full_example_description.rb
pact-1.0.31 lib/pact/consumer/rspec/full_example_description.rb