Sha256: 616a7b5805d7a9e75d810d7ea577e26dee5e4480e89e63a5591352442ad9e35b

Contents?: true

Size: 594 Bytes

Versions: 10

Compression:

Stored size: 594 Bytes

Contents

require 'spec_helper'

describe Ridley do
  let(:config) { double("config") }

  describe "ClassMethods" do
    subject { Ridley }

    describe "::sync" do
      it "delegates to Ridley::Connection.sync" do
        Ridley::Connection.should_receive(:sync).with(config)

        subject.sync(config) do; end
      end
    end

    describe "::connection" do
      it "creates a new Ridley::Connection" do
        conn = double('conn')
        Ridley::Connection.should_receive(:new).with(config).and_return(conn)

        subject.connection(config).should eql(conn)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ridley-0.7.0.beta spec/unit/ridley_spec.rb
ridley-0.6.3 spec/unit/ridley_spec.rb
ridley-0.6.2 spec/unit/ridley_spec.rb
ridley-0.6.1 spec/unit/ridley_spec.rb
ridley-0.6.0 spec/unit/ridley_spec.rb
ridley-0.5.2 spec/unit/ridley_spec.rb
ridley-0.5.1 spec/unit/ridley_spec.rb
ridley-0.5.0 spec/unit/ridley_spec.rb
ridley-0.4.1 spec/unit/ridley_spec.rb
ridley-0.4.0 spec/unit/ridley_spec.rb