Sha256: 3884b75d4ec7da940f6ef000130ac364a44691d1bb885609ebe60652d483ddce

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

require 'spec_helper'

describe Lemondrop do
  subject { Lemondrop::Plugin::Service }

  describe 'Lemondrop.do_something' do
    let(:connection) { double 'Lemondrop::Plugin::Service.connection' }

    it 'gets sent to Redis' do
      Lemondrop::Plugin::Service.stub(:connection).and_return connection
      connection.should_receive(:set).with "foo", "bar"

      Lemondrop.set "foo", "bar"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lemondrop-0.1.2 spec/lemondrop/send_connection_spec.rb
lemondrop-0.1.1 spec/lemondrop/send_connection_spec.rb
lemondrop-0.1.0 spec/lemondrop/send_connection_spec.rb