Sha256: 4fa4480a243974eea05c8b0435be62fcf411460230a5a257e6b56f101fe77e03

Contents?: true

Size: 750 Bytes

Versions: 3

Compression:

Stored size: 750 Bytes

Contents

require 'test/unit'
require File.expand_path '../../../../lib/model/execution.rb', __FILE__

class TestExecution < Test::Unit::TestCase

  include Theotokos::Model
  
  def test_initialization
    exec = Execution.new
    assert_equal exec.report_formats, [:console]
    assert_nil exec.test_files
    assert_nil exec.test_index
    assert_nil exec.tags
    assert_nil exec.internationalization
    
    exec.test_files = ['/path/to/file.yml']
    assert_equal exec.test_files, ['/path/to/file.yml']
    
    exec.test_index = 1
    assert_equal exec.test_index, 1
    
    exec.tags = ['dev', 'test']
    assert_equal exec.tags, ['dev', 'test']
    
    exec.internationalization = 'en'
    assert_equal 'en', exec.internationalization
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
theotokos-0.1.3 test/unit/model/test_execution.rb
theotokos-0.1.2 test/unit/model/test_execution.rb
theotokos-0.1.1 test/unit/model/test_execution.rb