Sha256: d1978594db8229bbea0772fbd5a60f9c43ea8c4c81377d93ae2183d62f6bfe01

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

class ToolsModuleTest < Minitest::Test

  def self.test_order
    :sorted
  end

  def test_log_A_all_operations

    ToolsFiles.remove_file (File.dirname __dir__) + '/tools_yaml.config'
    ToolsFiles.remove_file (File.dirname __dir__) + '/tools_json.config'
    ToolsConfig.create_config_file 'tools_yaml', (File.dirname __dir__) +'/tools_yaml.config', :yaml, {:first_time => true}
    ToolsConfig.create_config_file 'tools_json', (File.dirname __dir__) +'/tools_json.config', :json, {:first_time => true}
    ToolsConfig.create_config_file 'tools_json', (File.dirname __dir__) +'/tools_json.config', :json, {:first_time => true}
    ToolsConfig.load_config (File.dirname __dir__) + '/tools_yaml.config'
    ToolsConfig.load_config (File.dirname __dir__) + '/tools_json.config'

    ToolsConfig.insert_in_config (File.dirname __dir__) +'/tools_yaml.config', {:first_time => false,}
    ToolsConfig.insert_in_config (File.dirname __dir__) +'/tools_json.config', {:first_time => false,}

    ToolsConfig.change_value_in_config (File.dirname __dir__) +'/tools_yaml.config', true , :first_time
    ToolsConfig.change_value_in_config (File.dirname __dir__) +'/tools_json.config', true , :first_time

    ToolsFiles.remove_file (File.dirname __dir__) + '/tools_yaml.config'
    ToolsFiles.remove_file (File.dirname __dir__) + '/tools_json.config'

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tools-0.4.5 test/mini_config.rb