Sha256: 1a241cb28859850be60fff2411638726576d4f876bd4ece596525f30df57a603

Contents?: true

Size: 533 Bytes

Versions: 3

Compression:

Stored size: 533 Bytes

Contents

# coding: utf-8

require 'helper'
require 'output_interceptor'

class TestConfig < Test::Unit::TestCase

  def setup
    Boom::Config.any_instance.stubs(:file).
      returns("test/examples/test_json.json")

    @config = Boom::Config.new
    @config.stubs(:save).returns(true)
  end

  def test_bootstraps_config
    @config.bootstrap
    assert_equal ({:backend => 'json'}), @config.attributes
  end

  def test_attributes
    @config.attributes[:wu_tang] = 'clan'
    assert_equal 'clan', @config.attributes[:wu_tang]
  end


end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kaboom-0.3.3 test/test_config.rb
kaboom-0.3.2 test/test_config.rb
kaboom-0.3.1 test/test_config.rb