Sha256: 7210f88c458dc269d4546d7a6b4d6cf8cd37438404e913a466054b89cffeb84f

Contents?: true

Size: 378 Bytes

Versions: 21

Compression:

Stored size: 378 Bytes

Contents

# -*- coding: utf-8 -*-

require 'turnip_formatter/scenario'
require 'turnip_formatter/step/pending'

module TurnipFormatter
  module Scenario
    class NotPassedScenarioError < ::StandardError; end

    class Pass
      include TurnipFormatter::Scenario

      def validation
        raise NotPassedScenarioError if status != 'passed'
        super
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
turnip_formatter-0.2.11 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.10 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.9 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.8 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.7 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.6 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.5 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.4 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.3 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.2 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.1 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.2.0 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.1.2 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.1.1 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.1.0 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.0.6 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.0.5 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.0.4 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.0.3 lib/turnip_formatter/scenario/pass.rb
turnip_formatter-0.0.2 lib/turnip_formatter/scenario/pass.rb