Sha256: 1857fe6d88e946a9c2e1f4b129ac0b8fbfa49e39750a77758375a03a0f90c2b6

Contents?: true

Size: 775 Bytes

Versions: 1

Compression:

Stored size: 775 Bytes

Contents

require 'spec_helper'
require 'mirage/client'



describe TemplateConfiguration do

  it 'should have defaults' do
    configuration = TemplateConfiguration.new
    assert_defaults configuration
  end

  it 'should be reset' do
    configuration = TemplateConfiguration.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

1 entries across 1 versions & 1 rubygems

Version Path
mirage-3.0.0.alpha.3 spec/client/template_configuration_spec.rb