Method: Shoulda::ClassMethods#should_eventually

Defined in:
lib/shoulda/context.rb

#should_eventually(name, options = {}, &blk) ⇒ Object

Just like should, but never runs, and instead prints an ‘X’ in the Test::Unit output.



103
104
105
106
107
108
109
# File 'lib/shoulda/context.rb', line 103

def should_eventually(name, options = {}, &blk)
  context_name = self.name.gsub(/Test/, "")
  context = Shoulda::Context.new(context_name, self) do
    should_eventually(name, &blk)
  end
  context.build
end