Sha256: 690628a0fc6822abd75695bfcc6601777d34764154a4c6e3c73d9c14dd15aeaa

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

require 'spec_helper_lite'
require 'leadlight/null_link'

module Leadlight
  describe NullLink do
    subject {
      NullLink.new("http://example.org/z/y/?foo=123&bar=456&bar=789")
    }

    it 'derives params from URL query string' do
      subject.params.should eq("foo" => "123", "bar" => "789")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
leadlight-0.1.0 spec/leadlight/null_link_spec.rb
leadlight-0.0.7 spec/leadlight/null_link_spec.rb
leadlight-0.0.6 spec/leadlight/null_link_spec.rb