lib/r_spec.rb in r_spec-clone-1.7.0 vs lib/r_spec.rb in r_spec-clone-1.7.1
- old
+ new
@@ -81,12 +81,12 @@
# # Success: divided by 0.
#
# @param description [String] A description that usually begins with "when",
# "with" or "without".
# @param block [Proc] The block to define the specs.
- def self.context(description, &block)
- Clone::Dsl.context(description, &block)
+ def self.context(description, &)
+ Clone::Dsl.context(description, &)
end
# :nocov:
# Defines an example group that describes a unit to be tested.
@@ -115,12 +115,12 @@
# # Output to the console
# # Success: expected to eq "foobar".
#
# @param const [Module, String] A module to include in block context.
# @param block [Proc] The block to define the specs.
- def self.describe(const, &block)
- Clone::Dsl.describe(const, &block)
+ def self.describe(const, &)
+ Clone::Dsl.describe(const, &)
end
# :nocov:
# Defines a concrete test case.
@@ -141,11 +141,11 @@
# @param name [String, nil] The name of the spec.
# @param block [Proc] An expectation to evaluate.
#
# @raise (see RSpec::Clone::ExpectationTarget::Base#result)
# @return (see RSpec::Clone::ExpectationTarget::Base#result)
- def self.it(name = nil, &block)
- Clone::Dsl.it(name, &block)
+ def self.it(name = nil, &)
+ Clone::Dsl.it(name, &)
end
# :nocov:
# Defines a pending test case.