Sha256: d702dd8422152097013ec077a11190e7c88aced0eece5c1dc9bc42a093698466
Contents?: true
Size: 667 Bytes
Versions: 3
Compression:
Stored size: 667 Bytes
Contents
require 'test_helper' class PostalCoderTest < Test::Unit::TestCase context 'ProxyMethods' do should 'be present in PostalCoder module' do assert_respond_to PostalCoder, :config= assert_respond_to PostalCoder, :connect end context 'PostalCoder.config=' do should 'proxy to Config.update' do PostalCoder::Config.expects(:update).with({}) assert PostalCoder.config = {} end end context 'PostalCoder.connect' do should 'proxy to Resolver.new' do PostalCoder::Resolver.expects(:new).with({}).returns(:it_works) assert_equal :it_works, PostalCoder.connect end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
heycarsten-postalcoder-0.1.3 | test/postalcoder_test.rb |
heycarsten-postalcoder-0.1.4 | test/postalcoder_test.rb |
heycarsten-postalcoder-0.2.0 | test/postalcoder_test.rb |