Sha256: c40803ccebc0ae5c2c59c6efd28da3a10e707bc0a7a3b5060e0f91bb4fd25e89

Contents?: true

Size: 522 Bytes

Versions: 6

Compression:

Stored size: 522 Bytes

Contents

require File.expand_path('../test_helper', File.dirname(__FILE__))

class ChurnOptionsTest < Test::Unit::TestCase
 
  should "store get default directory" do
    assert_equal Churn::ChurnOptions::DEFAULT_CHURN_DIRECTORY, Churn::ChurnOptions.instance.data_directory
  end

  should "store get over ride directory" do
    options = Churn::ChurnOptions.instance
    tmp_dir = '/tmp/fake'
    options.set_options({:data_directory => tmp_dir})
    assert_equal tmp_dir, Churn::ChurnOptions.instance.data_directory
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
churn-0.0.35 test/unit/churn_options_test.rb
churn-0.0.34 test/unit/churn_options_test.rb
churn-0.0.33 test/unit/churn_options_test.rb
churn-0.0.32 test/unit/churn_options_test.rb
churn-0.0.31 test/unit/churn_options_test.rb
churn-0.0.30 test/unit/churn_options_test.rb