Sha256: 44bd9534b0ac324743a769b6a44fa61933f9a0445aea071e9325219eb241e0c4

Contents?: true

Size: 919 Bytes

Versions: 4

Compression:

Stored size: 919 Bytes

Contents

require './lib/renuo_bin_check/result'
FactoryGirl.define do
  factory :result, class: RenuoBinCheck::Result do
    standard_output "I passed\nThis is the second line\n"
    error_output "I failed\nThis is the second line\n"
    exit_code 0
    initialize_with { new(standard_output, error_output, exit_code) }

    factory :reversed_exit_result do
      error_output "I passed\nThis is the second line\n"
      standard_output "I failed\nThis is the second line\n"
      exit_code 1
    end

    factory :overridden_output_result do
      standard_output 'overridden standard_output'
      error_output 'overridden error_output'
    end

    factory :appended_output_result do
      standard_output "I passed\nThis is the second line\noverridden standard_output"
      error_output "I failed\nThis is the second line\noverridden error_output"
    end

    factory :failed_result do
      exit_code 1
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
renuo-bin-check-1.0.0.beta2 spec/factories/result.rb
renuo-bin-check-1.0.0.beta1 spec/factories/result.rb
renuo-bin-check-0.2.1 spec/factories/result.rb
renuo-bin-check-0.2.0 spec/factories/result.rb