Sha256: 78e7826211071746bbfd1ea3e74787b2d81bfdc4b09c5e4a9420f2cef8707a86
Contents?: true
Size: 440 Bytes
Versions: 6
Compression:
Stored size: 440 Bytes
Contents
module Arrthorizer::RSpec::SharedExamples shared_examples "not persisting state in the role object" do |options = {}| specify "no state is maintained in the role object" do the_role = options[:role] || role the_context = options[:current_context] || current_context the_role.applies_to_user?(user, Arrthorizer::Context(the_context)) expect(the_role.instance.instance_variables).to be_empty end end end
Version data entries
6 entries across 6 versions & 1 rubygems