diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5179ec3..a14aa93 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -18,7 +18,7 @@ config.run_all_when_everything_filtered = true config.filter_run :focus config.before :all do - Right.cache = ActiveSupport::Cache::MemoryStore.new + RightOn::Right.cache = ActiveSupport::Cache::MemoryStore.new end end @@ -30,7 +30,7 @@ load('spec/schema.rb') -Right.rights_yaml 'db/rights_roles.yml' +RightOn::Right.rights_yaml 'db/rights_roles.yml' class Model < ActiveRecord::Base restricted_by_right