Sha256: c8b7469070ff11e3fb01f01626a6ec55bc53120fb3c035927859b04df0a3f64f

Contents?: true

Size: 507 Bytes

Versions: 2

Compression:

Stored size: 507 Bytes

Contents

FactoryGirl.define do
  factory :project, :class => Bebox::Project do
    name "bebox-pname"
    vagrant_box_base "ubuntu-server-12042-x64-vbox4210-nocm.box"
    parent_path "#{Dir.pwd}/tmp"
    vagrant_box_provider 'virtualbox'
    default_environments ['vagrant', 'staging', 'production']

    initialize_with { new(name, vagrant_box_base, parent_path, vagrant_box_provider, default_environments) }

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

Version data entries

2 entries across 2 versions & 1 rubygems

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