use RSpec namespace for matcher - closes #119
This commit is contained in:
parent
e893e12260
commit
caed4fcee5
|
@ -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|
|
match do |ability|
|
||||||
ability.can?(*args)
|
ability.can?(*args)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user