spec/spec_helper.rb in right_on-0.3.0 vs spec/spec_helper.rb in right_on-0.4.0
- old
+ new
@@ -17,22 +17,20 @@
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.filter_run :focus
config.before :all do
- RightOn::Right.cache = ActiveSupport::Cache::MemoryStore.new
+ RightOn::RightAllowed.cache = ActiveSupport::Cache::MemoryStore.new
end
end
DB_FILE = 'tmp/test_db'
FileUtils.mkdir_p File.dirname(DB_FILE)
FileUtils.rm_f DB_FILE
ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => DB_FILE
load('spec/schema.rb')
-
-RightOn::Right.rights_yaml 'db/rights_roles.yml'
class Model < ActiveRecord::Base
end
class User < ActiveRecord::Base