Sha256: bc88565e448729797272f80515055ae46a534dea926d4820a9efbe227c33584a

Contents?: true

Size: 348 Bytes

Versions: 10

Compression:

Stored size: 348 Bytes

Contents

# encoding: utf-8

RSpec.configure do |config|

  # Prepares a sandbox before corresponding spec.
  config.before :each, :sandbox do
    require_relative "sandbox/helpers"
    require_relative "sandbox/matchers"
    prepare_sandbox
  end

  # Clears a sandbox after corresponding spec.
  config.after :each, :sandbox do
    clear_sandbox
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hexx-rspec-0.5.2 lib/hexx-rspec/initializers/sandbox.rb
hexx-rspec-0.5.1 lib/hexx-rspec/initializers/sandbox.rb
hexx-rspec-0.4.2 config/initializers/sandbox.rb
hexx-rspec-0.4.1 config/initializers/sandbox.rb
hexx-rspec-0.4.0 config/initializers/sandbox.rb
hexx-rspec-0.3.1 config/initializers/sandbox.rb
hexx-rspec-0.3.0 config/initializers/sandbox.rb
hexx-rspec-0.2.2 config/initializers/sandbox.rb
hexx-rspec-0.2.1 config/initializers/sandbox.rb
hexx-rspec-0.2.0 config/initializers/sandbox.rb