Sha256: e7abf8d796b96b022becc0e94d1319344673e3930ba6feb9a25d33e86e1c4a21

Contents?: true

Size: 915 Bytes

Versions: 6

Compression:

Stored size: 915 Bytes

Contents

require "spec_helper"

describe Savon::SOAP do

  it "should contain the SOAP namespace for each supported SOAP version" do
    Savon::SOAP::Versions.each do |soap_version|
      Savon::SOAP::Namespace[soap_version].should be_a(String)
      Savon::SOAP::Namespace[soap_version].should_not be_empty
    end
  end

  it "should contain a Rage of supported SOAP versions" do
    Savon::SOAP::Versions.should == (1..2)
  end

  it "should contain the xs:dateTime format" do
    Savon::SOAP::DateTimeFormat.should be_a(String)
    Savon::SOAP::DateTimeFormat.should_not be_empty

    DateTime.new(2012, 03, 22, 16, 22, 33).strftime(Savon::SOAP::DateTimeFormat).
      should == "2012-03-22T16:22:33+00:00"
  end

  it "should contain a Regexp matching the xs:dateTime format" do
    Savon::SOAP::DateTimeRegexp.should be_a(Regexp)
    (Savon::SOAP::DateTimeRegexp === "2012-03-22T16:22:33").should be_true
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
savon-0.8.1 spec/savon/soap_spec.rb
savon-0.8.0 spec/savon/soap_spec.rb
savon-0.8.0.beta.4 spec/savon/soap_spec.rb
savon-0.8.0.beta.3 spec/savon/soap_spec.rb
savon-0.8.0.beta.2 spec/savon/soap_spec.rb
savon-0.8.0.beta.1 spec/savon/soap_spec.rb