Sha256: 5840bd417db793182e8d694446a9696f1b7c30d80c781da40e4b69294a1feff4
Contents?: true
Size: 729 Bytes
Versions: 3
Compression:
Stored size: 729 Bytes
Contents
require "test_helper" class ConfigurationTest < Test::Unit::TestCase def test_should_be_an_instance_of_configuration assert Vcard.configuration.is_a?(::Vcard::Configuration) end def test_have_default_values Vcard.configuration.reset assert_equal(Vcard.configuration.raise_on_invalid_line, true) assert_equal(Vcard.configuration.ignore_invalid_vcards, true) end def test_allow_configuration_with_block Vcard.configuration.reset Vcard.configure do |config| config.raise_on_invalid_line = false config.ignore_invalid_vcards = false end assert_equal(Vcard.configuration.raise_on_invalid_line, false) assert_equal(Vcard.configuration.ignore_invalid_vcards, false) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vcard-0.3.0 | test/configuration_test.rb |
vcard-0.2.16 | test/configuration_test.rb |
vcard-0.2.15 | test/configuration_test.rb |