Sha256: 62adf30b54900645497059c35dcb01837910234c4b23a758ac8ed533388f274f

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

# -*- coding: utf-8 -*-
require 'turnip_formatter/step'
require 'turnip_formatter/step/dsl'

module TurnipFormatter
  class Step
    module Pending
      extend DSL

      def self.status
        :pending
      end

      def status
        Pending.status
      end

      add_template :exception do
        message = example.execution_result[:pending_message]
        exception = RSpec::Core::Pending::PendingDeclaredInExample.new(message)
        exception.set_backtrace(example.location)
        exception
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
turnip_formatter-0.1.2 lib/turnip_formatter/step/pending.rb
turnip_formatter-0.1.1 lib/turnip_formatter/step/pending.rb