Module: DataObjects::Spec::PendingHelpers

Defined in:
lib/data_objects/spec/lib/pending_helpers.rb

Instance Method Summary collapse

Instance Method Details

#pending_if(message, boolean) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/data_objects/spec/lib/pending_helpers.rb', line 3

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