Sha256: 1d3d7aeea6c65bea8210b8f130ee6c086e9f04c4d9de35734a199c1332024ac1
Contents?: true
Size: 781 Bytes
Versions: 6
Compression:
Stored size: 781 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
6 entries across 6 versions & 1 rubygems