lib/remarkable/core/matchers.rb in remarkable-4.0.0.alpha2 vs lib/remarkable/core/matchers.rb in remarkable-4.0.0.alpha3
- old
+ new
@@ -10,13 +10,13 @@
# target as argument.
#
def self.include_matchers!(base, target=nil)
if target.nil?
if rspec_defined?
- target = Rspec::Matchers
+ target = RSpec::Matchers
else
- raise ArgumentError, "You haven't supplied the target to include_matchers! and Rspec is not loaded, so we cannot infer one."
+ raise ArgumentError, "You haven't supplied the target to include_matchers! and RSpec is not loaded, so we cannot infer one."
end
end
metaclass = (class << target; self; end)
target.send :extend, Remarkable::Macros unless metaclass.ancestors.include?(Remarkable::Macros)
@@ -32,8 +32,8 @@
base.after_include(target)
end
end
def self.rspec_defined? #:nodoc:
- defined?(Rspec)
+ defined?(RSpec)
end
end