Sha256: 56e49eef129d7921bf181dc683d93b93e73ba4546709e21fac6cae09a90bde33

Contents?: true

Size: 503 Bytes

Versions: 2

Compression:

Stored size: 503 Bytes

Contents

# coding: utf-8

require 'helper'

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

2 entries across 2 versions & 1 rubygems

Version Path
boom-0.1.1 test/test_config.rb
boom-0.1.0 test/test_config.rb