moving with_model rspec configuration into Active Record model adapter spec

This commit is contained in:
Ryan Bates 2011-01-04 10:55:48 -08:00
parent bd9480cb51
commit 685e926d96
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,10 @@
if ENV["MODEL_ADAPTER"].nil? || ENV["MODEL_ADAPTER"] == "active_record"
require "spec_helper"
RSpec.configure do |config|
config.extend WithModel
end
ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
describe CanCan::ModelAdapters::ActiveRecordAdapter do

View File

@ -14,7 +14,6 @@ RSpec.configure do |config|
Project.delete_all
Category.delete_all
end
config.extend WithModel if defined? WithModel
end
class Ability