Sha256: 23df56bf2aac2d0534035066f07c50e963f2af32068989b372cd63b7cc3ed449

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

require 'spec_helper'

describe Object do

  describe '#to_param' do

    it 'should return a representation of an object' do
      1.to_param.should == '1'
    end

  end

  describe '#to_query' do

    it 'should CGI escape an object and its associated key' do
      'foo'.to_query('bar').should == 'bar=foo'
    end

  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
the_viking-1.0.0 spec/core_ext/object_spec.rb
viking-1.0.1 spec/core_ext/object_spec.rb
viking-1.0.0 spec/core_ext/object_spec.rb