lib/r_spec.rb in r_spec-1.0.0.beta2 vs lib/r_spec.rb in r_spec-1.0.0.beta3
- old
+ new
@@ -11,16 +11,14 @@
#
# @api public
module RSpec
# Specs are built with this method.
#
- # @param const [Module] A module to include in block context.
+ # @param const [Module, String] A module to include in block context.
# @param block [Proc] The block to define the specs.
#
# @api public
def self.describe(const, &block)
- raise ::TypeError, const.class.inspect unless const.is_a?(::Module)
-
DSL.describe(const, &block)
end
end
require_relative File.join("r_spec", "dsl")