Sha256: 0b7b9ae3fa9d07d7eaa0be587f3ca34bfaf9a51a41a44282eb96ba4f1e16059a

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

require './lib/renuo_bin_check/script_config'
FactoryGirl.define do
  factory :script, class: RenuoBinCheck::ScriptConfig do
    script_command 'cool command'
    script_name 'script_name'
    script_files %w(cool_file1 cool_file1)

    factory :failing_script do
      script_command './spec/spec-files/test_script_exit1'
      script_name 'exit1'
    end

    factory :passing_script do
      script_command './spec/spec-files/test_script_exit0'
      script_name 'exit0'

      factory :without_files_script do
        script_files nil
      end

      factory :with_overridden_output_script do
        script_standard_output 'overridden standard_output'
        script_error_output 'overridden error_output'
      end

      factory :with_appended_output_script do
        appended_standard_output 'overridden standard_output'
        appended_error_output 'overridden error_output'
      end

      factory :reversed_exit_script do
        script_reversed_exit true
      end
    end

    factory :cached_script do
      script_command 'script_name'
      script_files ['./spec/spec-files/file1', './spec/spec-files/file2']
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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