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

Version Path
mirage-3.0.13 spec/mirage/client/template/configuration_spec.rb
mirage-3.0.12 spec/mirage/client/template/configuration_spec.rb
mirage-3.0.11 spec/mirage/client/template/configuration_spec.rb
mirage-3.0.10 spec/client/template/configuration_spec.rb
mirage-3.0.9 spec/client/template/configuration_spec.rb
mirage-on-thin-3.0.8 spec/client/template/configuration_spec.rb
mirage-3.0.8 spec/client/template/configuration_spec.rb
mirage-3.0.7 spec/client/template/configuration_spec.rb
mirage-3.0.6 spec/client/template/configuration_spec.rb
mirage-3.0.5 spec/client/template/configuration_spec.rb
mirage-3.0.4 spec/client/template/configuration_spec.rb
mirage-3.0.3 spec/client/template/configuration_spec.rb
mirage-3.0.2 spec/client/template/configuration_spec.rb
mirage-3.0.1 spec/client/template/configuration_spec.rb
mirage-3.0.0 spec/client/template/configuration_spec.rb
mirage-3.0.0.alpha.17 spec/client/template/configuration_spec.rb
mirage-3.0.0.alpha.16 spec/client/template/configuration_spec.rb
mirage-3.0.0.alpha.15 spec/client/template/configuration_spec.rb
mirage-3.0.0.alpha.14 spec/client/template/configuration_spec.rb
mirage-3.0.0.alpha.13 spec/client/template/configuration_spec.rb