Sha256: 4a0a8b0e44ea310c650f0a9a0941059c61722c57395b296517d5142a5e6fb4b3

Contents?: true

Size: 503 Bytes

Versions: 19

Compression:

Stored size: 503 Bytes

Contents

module Cucumber
  module World
    module Pending

      ##
      # Mark this step as pending
      def pending(message = "TODO")
        if block_given?
          begin
            yield
          rescue Exception => e
            raise Cucumber::ForcedPending.new(message)
          end
          raise Cucumber::ForcedPending.new("Expected pending '#{message}' to fail. No Error was raised.")
        else
          raise Cucumber::ForcedPending.new(message)
        end
      end

    end
  end
end

Version data entries

19 entries across 19 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.1.13.2 lib/cucumber/world/pending.rb
aslakhellesoy-cucumber-0.1.13.3 lib/cucumber/world/pending.rb
aslakhellesoy-cucumber-0.1.13 lib/cucumber/world/pending.rb
aslakhellesoy-cucumber-0.1.14.1 lib/cucumber/world/pending.rb
aslakhellesoy-cucumber-0.1.14.2 lib/cucumber/world/pending.rb
aslakhellesoy-cucumber-0.1.15 lib/cucumber/world/pending.rb
aslakhellesoy-cucumber-0.1.16.1 lib/cucumber/world/pending.rb
aslakhellesoy-cucumber-0.1.16.2 lib/cucumber/world/pending.rb
aslakhellesoy-cucumber-0.1.16.3 lib/cucumber/world/pending.rb
aslakhellesoy-cucumber-0.1.16.4 lib/cucumber/world/pending.rb
aslakhellesoy-cucumber-0.1.16 lib/cucumber/world/pending.rb
kosmas58-cucumber-0.1.16.5 lib/cucumber/world/pending.rb
kosmas58-cucumber-0.1.16.6 lib/cucumber/world/pending.rb
cucumber-0.1.13 lib/cucumber/world/pending.rb
cucumber-0.1.14 lib/cucumber/world/pending.rb
cucumber-0.1.15 lib/cucumber/world/pending.rb
cucumber-0.1.16 lib/cucumber/world/pending.rb
mack-0.8.3.1 lib/gems/cucumber-0.1.15/lib/cucumber/world/pending.rb
mack-0.8.3 lib/gems/cucumber-0.1.15/lib/cucumber/world/pending.rb