Sha256: ac3c8e03e9b4d65649314da1d520b276bb78f197386cc66eb9f65a252f6b9631

Contents?: true

Size: 806 Bytes

Versions: 1

Compression:

Stored size: 806 Bytes

Contents

require 'test_helper'

class ThermometerTest < ActiveSupport::TestCase
  test "Thermometer is a module" do
    assert_kind_of Module, Thermometer
  end

  test "Thermometer yields a configuration" do
    Thermometer.configure do |c|
      assert_instance_of Thermometer::Configuration ,  c
    end
  end

  test "Configuration as a config Hash" do
    assert_kind_of Hash, Thermometer.configuration.config
  end

  test "Configuration has a config Hash" do
    assert_kind_of Hash, Thermometer.configuration.config
  end

  test "Configuration has a time_ranges Hash" do
    assert_kind_of ActiveSupport::HashWithIndifferentAccess, Thermometer.configuration.time_ranges
  end

  test "Configuration has a scope_options Hash" do
    assert_kind_of Hash, Thermometer.configuration.scope_options
  end



end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thermometer-0.0.3 test/thermometer_test.rb