Sha256: 566c937afd3047f5206107fc64f7741150d50169226fdbb6540f73610c200b21

Contents?: true

Size: 645 Bytes

Versions: 17

Compression:

Stored size: 645 Bytes

Contents

FactoryGirl.define do

  factory :wallet, class: BitWallet::Wallet do
    initialize_with { BitWallet::Wallet.new(Config.slice(:username,
                                                         :password,
                                                         :port)) }
  end

  factory :account, class: BitWallet::Account do
    ignore do
      wallet { build(:wallet) }
      name { 'name' }
    end
    initialize_with { BitWallet::Account.new(wallet, name) }
  end

  factory :address, class: BitWallet::Address do
    ignore do
      account { build(:account) }
    end
    initialize_with { BitWallet::Address.new(account) }
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bit_wallet-0.7.6 spec/factories.rb
bit_wallet-0.7.5 spec/factories.rb
bit_wallet-0.7.3 spec/factories.rb
bit_wallet-0.7.2 spec/factories.rb
bit_wallet-0.7.1 spec/factories.rb
bit_wallet-0.7.0 spec/factories.rb
bit_wallet-0.6.1 spec/factories.rb
bit_wallet-0.6.0 spec/factories.rb
bit_wallet-0.5.0 spec/factories.rb
bit_wallet-0.4.0 spec/factories.rb
bit_wallet-0.3.0 spec/factories.rb
bit_wallet-0.2.0 spec/factories.rb
bit_wallet-0.1.1 spec/factories.rb
bit_wallet-0.1.0 spec/factories.rb
bit_wallet-0.0.3 spec/factories.rb
bit_wallet-0.0.2 spec/factories.rb
bit_wallet-0.0.1 spec/factories.rb