Sha256: ec4224367d62ebe92a6c45bf3248bc58af68409b84f1c28bd0d3f789158257e8
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
Bundler.require require 'protector' require_relative 'examples/model' module ProtectionCase extend ActiveSupport::Concern included do protect do |x| scope{ where('1=0') } if x == '-' scope{ where(number: 999) } if x == '+' can :view, :dummy_id unless x == '-' end end end RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protector-0.1.1 | spec/spec_helpers/boot.rb |