Module Remarkable::Pending
In: lib/remarkable/pending.rb

Methods

pending  

Public Instance methods

Adds a pending block to your specs.

Examples

  pending 'create manager resource' do
    should_have_one :manager
    should_validate_associated :manager
  end

By default, it executes the examples inside the pending block. So as soon as you add the has_one :manager relationship to your model, your specs will say that this was already fixed and there is no need to be treated as pending. To disable this behavior, you can give :execute => false:

  pending 'create manager resource', :execute => false

[Source]

    # File lib/remarkable/pending.rb, line 35
35:     def pending(*args, &block)
36:       options = { :execute => true }.merge(args.extract_options!)
37: 
38:       @_pending_group = true
39:       @_pending_group_description = args.first || "TODO"
40:       @_pending_group_execute = options.delete(:execute)
41: 
42:       self.instance_eval(&block)
43: 
44:       @_pending_group = false
45:       @_pending_group_description = nil
46:       @_pending_group_execute = nil
47:     end

[Validate]