Sha256: c2d50a08c621d519cca33ca8ae6a3f54187d7569d1247462e11dcd91aba9adab

Contents?: true

Size: 426 Bytes

Versions: 5

Compression:

Stored size: 426 Bytes

Contents

FactoryGirl.define do
  factory :node, :class => Bebox::Node do
    environment   'vagrant'
    project_root  "#{Dir.pwd}/tmp/bebox-pname"
    hostname      'node0.server1.test'
    ip            YAML.load_file('spec/support/config_specs.yaml')['test_ip']

    initialize_with { new(environment, project_root, hostname, ip) }

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bebox-0.1.5 spec/factories/node.rb
bebox-0.1.4 spec/factories/node.rb
bebox-0.1.3 spec/factories/node.rb
bebox-0.1.2 spec/factories/node.rb
bebox-0.1.1 spec/factories/node.rb