You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2018. It is now read-only.
Peter Suschlik edited this page Feb 13, 2014
·
14 revisions
You can also use minitestassert methods by defining your own World block:
Minitest 5
require 'minitest/spec'
class MyWorld
extend Minitest::Assertions
attr_accessor :assertions
def initialize
self.assertions = 0
end
end
World do
MyWorld.new
end
Older versions
require 'mini/test'
World do |world|
world.extend(Mini::Test::Assertions)
world
end
If it doesn’t work, try this one:
require 'minitest/unit'
World do
extend Mini::Test::Assertions
end