spec/spec_helper.rb in remarkable_rails-3.1.7 vs spec/spec_helper.rb in remarkable_rails-3.1.8
- old
+ new
@@ -1,10 +1,9 @@
require 'rubygems'
RAILS_ENV = 'test'
RAILS_VERSION = ENV['RAILS_VERSION'] || '2.3.2'
-RSPEC_VERSION = ENV['RSPEC_VERSION'] || Spec::VERSION::STRING
# Load Rails
gem 'activesupport', RAILS_VERSION
require 'active_support'
@@ -30,11 +29,15 @@
require File.join(RAILS_ROOT, 'tasks_controller')
# Load Remarkable Rails
require File.join(dir, 'functional_builder')
-# Load spec-rails
-gem 'rspec-rails', RSPEC_VERSION
+# Load spec-rails
+if ENV['RSPEC_VERSION']
+ gem 'rspec-rails', ENV['RSPEC_VERSION']
+else
+ gem 'rspec-rails'
+end
require 'spec/rails'
require File.join(dir, '..', 'lib', 'remarkable_rails')
# Register folders to example groups