class Assert::Macro
Attributes
name[RW]
this class is essentially a way to define a custom set of tests using arguments. When passed as an argument to the “should” method, a macro will be instance_eval’d in that Assert::Context
.
Public Class Methods
new(name = nil, *_args)
click to toggle source
Calls superclass method
# File lib/assert/macro.rb, line 10 def initialize(name = nil, *_args) raise ArgumentError unless block_given? @name = name || "run this macro" super() end