Sha256: 78ecf9d29ec9c464e087439f598f84590785940e5c338e49ec068283e2b2a66a

Contents?: true

Size: 515 Bytes

Versions: 12

Compression:

Stored size: 515 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[ .. .. spec_helper])

describe 'hash extentions' do

  it 'should format the content correctly' do
    payload = {:subject => "A New Ticket", :queue => 'My Queue'}
    payload.to_content_format.include?("Subject: A New Ticket").should be_true
    payload.to_content_format.include?("Queue: My Queue").should be_true
  end
  
  it 'should handel custom fields' do
    payload = {:cf_stuff => 'field'}
    payload.to_content_format.should == "CF-Stuff: field"
  end
  
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
pjdavis-roart-0.1.3 spec/roart/core/hash_spec.rb
pjdavis-roart-0.1.4 spec/roart/core/hash_spec.rb
roart-0.1.9 spec/roart/core/hash_spec.rb
axtro-roart-0.1.9 spec/roart/core/hash_spec.rb
axtro-roart-0.1.8 spec/roart/core/hash_spec.rb
roart-0.1.8 spec/roart/core/hash_spec.rb
roart-0.1.7 spec/roart/core/hash_spec.rb
roart-0.1.6 spec/roart/core/hash_spec.rb
roart-0.1.5.1 spec/roart/core/hash_spec.rb
roart-0.1.5 spec/roart/core/hash_spec.rb
threetee-roart-0.1.4 spec/roart/core/hash_spec.rb
roart-0.1.4 spec/roart/core/hash_spec.rb