Sha256: 3c9ef6558e25a42f8683d38d0661b78601e3a3418e6cd2c9d6845a1df5bdcd6f

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

require 'spec_helper'

describe Restcomm::Util do
  include Restcomm::Util

  it 'should parse a Date object' do
    today = Time.now
    url = url_encode('DateSent>' => today)

    expect(url).to eq("DateSent%3E=#{today.strftime('%Y-%m-%d')}")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restcomm-ruby-1.2.1 spec/util/url_encode_spec.rb
restcomm-ruby-1.2.0 spec/util/url_encode_spec.rb