From 4eb6667306d5b72335a67e5722e28d02d6469f5f Mon Sep 17 00:00:00 2001 From: Alessandro Berardi Date: Fri, 3 Jun 2016 11:18:27 +0930 Subject: [PATCH] Adds missing module scoping to spec helper --- spec/spec_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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