Sha256: af4d02bf2c891cdf2cda144cc95d1abff635ebd399f441ab6e97f4f08b765f11

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

module TurnipFormatter
  class Step
    attr_reader :name, :example, :extra_args
    attr_accessor :status

    #
    # @param  [RSpec::Core::Example]  example
    # @param  [Hash]  raw
    #
    def initialize(example, raw)
      @example    = example
      @name       = raw[:keyword].strip + ' ' + raw[:name]
      @extra_args = raw[:extra_args]
      @status     = :passed
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
turnip_formatter-0.3.1 lib/turnip_formatter/step.rb
turnip_formatter-0.3.0 lib/turnip_formatter/step.rb