use RSpec namespace for matcher - closes #119

This commit is contained in:
Ryan Bates 2010-08-18 16:22:43 -07:00
parent e893e12260
commit caed4fcee5

View File

@ -1,4 +1,5 @@
Spec::Matchers.define :be_able_to do |*args|
RSpec = Spec unless defined? RSpec # for RSpec 1 compatability
RSpec::Matchers.define :be_able_to do |*args|
match do |ability|
ability.can?(*args)
end