Sha256: b9e82393160b5abd7586fcb87ea1476ada297b87d53cf9a8e2ce7f890ed35cbd

Contents?: true

Size: 749 Bytes

Versions: 21

Compression:

Stored size: 749 Bytes

Contents

require File.expand_path('../test_helper', __FILE__)

module Loquor
  class LoquorTest < HttpAction::Test
    def test_get_calls_get
      url = "foo"
      Client.any_instance.expects(:get).with(url)
      Loquor.get(url)
    end
    
    def test_get_calls_get_passing_on_args
      url = "foo"
      Client.any_instance.expects(:get).with(url, cached=true)
      Loquor.get(url, cached=true)
    end

    def test_put_calls_put
      url = "foo"
      payload = "bar"
      Client.any_instance.expects(:put).with(url, payload)
      Loquor.put(url, payload)
    end

    def test_post_calls_post
      url = "foo"
      payload = "bar"
      Client.any_instance.expects(:post).with(url, payload)
      Loquor.post(url, payload)
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
loquor-1.13.0 test/loquor_test.rb
loquor-1.12.0 test/loquor_test.rb
loquor-1.11.0 test/loquor_test.rb
loquor-1.10.0 test/loquor_test.rb
loquor-1.9.0 test/loquor_test.rb
loquor-1.8.0 test/loquor_test.rb
loquor-1.7.0 test/loquor_test.rb
loquor-1.6.0 test/loquor_test.rb
loquor-1.5.0 test/loquor_test.rb
loquor-1.4.0 test/loquor_test.rb
loquor-1.3.0 test/loquor_test.rb
loquor-1.2.1 test/loquor_test.rb
loquor-1.2.0 test/loquor_test.rb
loquor-1.1.1 test/loquor_test.rb
loquor-1.1.0 test/loquor_test.rb
loquor-1.0.0 test/loquor_test.rb
loquor-0.9.0 test/loquor_test.rb
loquor-0.8.0 test/loquor_test.rb
loquor-0.7.0 test/loquor_test.rb
loquor-0.6.0 test/loquor_test.rb