Skip to content

Instantly share code, notes, and snippets.

@voxik
Created December 16, 2010 09:39
Show Gist options
  • Save voxik/743235 to your computer and use it in GitHub Desktop.
Save voxik/743235 to your computer and use it in GitHub Desktop.
Fixed-RSpec-1-compatibilty.patch
From 04a56c44f8f684aa45fe89a0a6f2c13aecbb5775 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]>
Date: Thu, 16 Dec 2010 10:36:41 +0100
Subject: [PATCH] Fixed RSpec 1 compatibilty
---
spec/spec_helper.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 26f09fe..c9ae3ae 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -12,6 +12,7 @@ Dir[File.join(File.dirname(__FILE__), "helpers", "**/*.rb")].each do |f|
require f
end
+RSpec = Spec::Runner unless defined? RSpec # for RSpec 1 compatability
RSpec.configure do |config|
config.include(Warden::Spec::Helpers)
--
1.7.3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment