lib/kernel.rb in fix-1.0.0.beta8 vs lib/kernel.rb in fix-1.0.0.beta9
- old
+ new
@@ -15,22 +15,23 @@
# Fix :Answer do
# it MUST equal 42
# end
#
# # A test
- # Fix[:Answer].against { 42 }
+ # Fix[:Answer].test { 42 }
#
# @param name [String, Symbol] The constant name of the specifications.
# @param block [Proc] The specifications.
#
- # @return [#against] The collection of specifications.
+ # @return [#test] The collection of specifications.
#
# @api public
- def Fix(name = nil, &block)
+ def Fix(name = nil, &)
klass = ::Class.new(::Fix::Dsl)
klass.const_set(:CONTEXTS, [klass])
- klass.instance_eval(&block)
+ klass.instance_eval(&)
::Fix::Doc.const_set(name, klass) unless name.nil?
::Fix::Set.new(*klass.const_get(:CONTEXTS))
end
+
# rubocop:enable Naming/MethodName
end