Sha256: ad21615b510fd5cad32e39cc21a4743f526d0f3eb526f141cb47a03cdb385b68

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 Bytes

Contents

require "helper"
require "minitest/mock"

class DefaultAdapterTest < ActiveSupport::TestCase
  test "passes increment along" do
    mock = MiniTest::Mock.new
    mock.expect :increment, nil, ["single", 1]
    mock.expect :increment, nil, ["double", 2]

    client = Nunes::Adapters::Default.new(mock)
    client.increment("single")
    client.increment("double", 2)

    mock.verify
  end

  test "passes timing along" do
    mock = MiniTest::Mock.new
    mock.expect :timing, nil, ["foo", 23]

    client = Nunes::Adapters::Default.new(mock)
    client.timing("foo", 23)

    mock.verify
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nunes-0.1.0 test/adapters/default_test.rb