Sha256: ac707f7cbc203c11bc0e8de29f263fc94f6ccb16f07958ea1641b77c003fb8f1
Contents?: true
Size: 771 Bytes
Versions: 23
Compression:
Stored size: 771 Bytes
Contents
require 'spec_helper' require 'mirage/client' describe Template::Configuration do it 'should have defaults' do configuration = Template::Configuration.new assert_defaults configuration end it 'should be reset' do configuration = Template::Configuration.new configuration.http_method :post configuration.status 202 configuration.delay 3 configuration.default true configuration.content_type "text/xml" configuration.reset assert_defaults configuration end def assert_defaults configuration configuration.http_method.should == :get configuration.status.should == 200 configuration.delay.should == 0 configuration.default.should == false configuration.content_type.should == "text/plain" end end
Version data entries
23 entries across 23 versions & 2 rubygems