Sha256: b9063dae7aaa6bcc126fffd49c97d89a1b25adb90a77d6820377415aed8e9b90

Contents?: true

Size: 482 Bytes

Versions: 18

Compression:

Stored size: 482 Bytes

Contents

shared_context "paranoidal", paranoid: true do
  before(:all) do
    @paranoid_condition = Protector.config.paranoid?
    Protector.config.paranoid = true
  end

  after(:all) do
    Protector.config.paranoid = @paranoid_condition
  end
end

shared_context "adequate", paranoid: false do
  before(:all) do
    @paranoid_condition = Protector.config.paranoid?
    Protector.config.paranoid = false
  end

  after(:all) do
    Protector.config.paranoid = @paranoid_condition
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
protector-0.7.7 spec/spec_helpers/contexts/paranoid.rb
protector-0.7.6 spec/spec_helpers/contexts/paranoid.rb
protector-0.7.4 spec/spec_helpers/contexts/paranoid.rb
protector-0.7.3 spec/spec_helpers/contexts/paranoid.rb
protector-0.7.2 spec/spec_helpers/contexts/paranoid.rb
protector-0.7.1 spec/spec_helpers/contexts/paranoid.rb
protector-0.7.0 spec/spec_helpers/contexts/paranoid.rb
protector-0.6.4 spec/spec_helpers/contexts/paranoid.rb
protector-0.6.3 spec/spec_helpers/contexts/paranoid.rb
protector-0.6.2 spec/spec_helpers/contexts/paranoid.rb
protector-0.6.1 spec/spec_helpers/contexts/paranoid.rb
protector-0.6.0 spec/spec_helpers/contexts/paranoid.rb
protector-0.6.0.beta.1 spec/spec_helpers/contexts/paranoid.rb
protector-0.5.5 spec/spec_helpers/contexts/paranoid.rb
protector-0.5.4 spec/spec_helpers/contexts/paranoid.rb
protector-0.5.3 spec/spec_helpers/contexts/paranoid.rb
protector-0.5.2 spec/spec_helpers/contexts/paranoid.rb
protector-0.5.1 spec/spec_helpers/contexts/paranoid.rb