Sha256: 7b51ad818517327f2afa6cc03a33645413e929275d9c13113947f03c616922c4

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

module DataObjects::Spec
  module Pending

    def pending(message = '')
      raise Bacon::Error.new(:pending, message)
    end

    def pending_if(message, boolean)
      if boolean
        pending(message) { yield }
      else
        yield
      end
    end
  end
end

module Bacon
  class Context
    include DataObjects::Spec::Pending
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
data_objects-0.10.3 lib/data_objects/spec/helpers/pending.rb
data_objects-0.10.2 lib/data_objects/spec/helpers/pending.rb
data_objects-0.10.1 lib/data_objects/spec/helpers/pending.rb