Skip to content

Instantly share code, notes, and snippets.

@voxik
Created August 15, 2010 14:50
Show Gist options
  • Save voxik/525567 to your computer and use it in GitHub Desktop.
Save voxik/525567 to your computer and use it in GitHub Desktop.
From 6095f6702279b85bd5de278fbb5d2cf02d088f7b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]>
Date: Sun, 15 Aug 2010 16:48:12 +0200
Subject: [PATCH] Fixed RSpec deprecation warning.
---
lib/cancan/matchers.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/cancan/matchers.rb b/lib/cancan/matchers.rb
index a71c458..2fd9ed2 100644
--- a/lib/cancan/matchers.rb
+++ b/lib/cancan/matchers.rb
@@ -1,4 +1,4 @@
-Spec::Matchers.define :be_able_to do |*args|
+RSpec::Matchers.define :be_able_to do |*args|
match do |ability|
ability.can?(*args)
end
--
1.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment