module Minitest
Public Class Methods
shouldify!(new_must, new_wont)
click to toggle source
Registers new expectations names.
Example:
Minitest.shouldify! "should", "should_not" class Foo def bar; "bar"; end end describe Foo, :bar do it "is bar" do Foo.new.bar.should_equal "bar" end it "is not baz" do Foo.new.bar.should_not_equal "baz" end end
# File lib/minitest/shouldify.rb, line 149 def self.shouldify! new_must, new_wont Minitest::Shouldify.register! new_must, new_wont end