test/configuration_test.rb in loquor-0.7.0 vs test/configuration_test.rb in loquor-0.8.0

- old
+ new

@@ -35,9 +35,20 @@ endpoint = "http://localhost:3000" Loquor.config.endpoint = endpoint assert_equal endpoint, Loquor.config.endpoint end + def test_substitute_values + substitute_values = {foo: 'bar'} + Loquor.config.substitute_values = substitute_values + assert_equal substitute_values, Loquor.config.substitute_values + end + + def test_substitute_values_writable + Loquor.config.substitute_values[:foo] = "bar" + assert_equal "bar", Loquor.config.substitute_values[:foo] + end + def test_missing_access_id_throws_exception assert_raises(LoquorConfigurationError) do Loquor.config.access_id end end