Sha256: 6e9bc24f7efade14af45b4e05e6e91317c0dee24188994fa0b5f7bea084badb8

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

FactoryGirl.define do
  factory :environment, :class => Bebox::Environment do
    name "pname_env"
    project_root "#{Dir.pwd}/tmp/bebox-pname"

    initialize_with { new(name, project_root) }

    trait :created do
      after(:build) do |environment|
        environment.create
      end
    end

    trait :removed do
      after(:build) do |environment|
        environment.remove
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bebox-0.1.0 spec/factories/environment.rb
bebox-0.0.1 spec/factories/environment.rb