Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Adds missing module scoping to spec helper
Browse files Browse the repository at this point in the history
  • Loading branch information
alxberardi committed Jun 3, 2016
1 parent 5779e75 commit 4eb6667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 4eb6667

Please sign in to comment.