Sha256: dd33f00c8ef16cec474bace4dd11df1e5bf20d27cb8d7a7599b95e27d848a7a5

Contents?: true

Size: 258 Bytes

Versions: 4

Compression:

Stored size: 258 Bytes

Contents

require "spec_helper"

describe Time do

  describe "#xs_datetime" do
    let(:time) { Time.utc(2011, 01, 04, 13, 45, 55) }

    it "should return an xs:dateTime formatted String" do
      time.xs_datetime.should == "2011-01-04T13:45:55Z"
    end
  end

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
savon-0.9.4 spec/savon/core_ext/time_spec.rb
savon-0.9.3 spec/savon/core_ext/time_spec.rb
search_biomodel-1.0.0 search_biomodel/ruby/1.8/gems/savon-0.9.2/spec/savon/core_ext/time_spec.rb
savon-0.9.2 spec/savon/core_ext/time_spec.rb