Sha256: f76d08f026d516e764cdfb90e40c7b789a19e24f75303c4f0b95ed499a1ebfee

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

require "spec_helper"

module RockConfig
  describe RockConfig do
    it "it loads valid configs" do
      RockConfig.configure do |config|
        config.scanned_directories << File.join(Dir.pwd, "spec", "fixtures")
        config.config_loaders << YamlLoader.new
      end

      RockConfig.for("database", "development").magic_number.should eq(213)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rock_config-0.0.5 spec/rock_config_spec.rb
rock_config-0.0.4 spec/rock_config_spec.rb
rock_config-0.0.3 spec/rock_config_spec.rb
rock_config-0.0.2 spec/rock_config_spec.rb
rock_config-0.0.1 spec/rock_config_spec.rb