Sha256: 30206d2c130c8f9cbc843a5bea58dff269527b6593bd28b899bfe6ac1368a996

Contents?: true

Size: 389 Bytes

Versions: 43

Compression:

Stored size: 389 Bytes

Contents

require 'spec_helper'

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

  describe "ClassMethods" do
    subject { Ridley }

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

        subject.new(config).should eql(client)
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
ridley-1.2.6 spec/unit/ridley_spec.rb
ridley-1.2.5 spec/unit/ridley_spec.rb
ridley-1.0.3 spec/unit/ridley_spec.rb
ridley-1.2.4 spec/unit/ridley_spec.rb
ridley-1.2.3 spec/unit/ridley_spec.rb
ridley-1.2.2 spec/unit/ridley_spec.rb
ridley-1.2.1 spec/unit/ridley_spec.rb
ridley-1.2.0 spec/unit/ridley_spec.rb
ridley-1.1.1 spec/unit/ridley_spec.rb
ridley-1.1.0 spec/unit/ridley_spec.rb
ridley-1.0.2 spec/unit/ridley_spec.rb
ridley-1.0.1 spec/unit/ridley_spec.rb
ridley-1.0.0 spec/unit/ridley_spec.rb
ridley-1.0.0.rc3 spec/unit/ridley_spec.rb
ridley-1.0.0.rc2 spec/unit/ridley_spec.rb
ridley-1.0.0.rc1 spec/unit/ridley_spec.rb
ridley-0.12.4 spec/unit/ridley_spec.rb
ridley-0.12.3 spec/unit/ridley_spec.rb
ridley-0.12.2 spec/unit/ridley_spec.rb
ridley-0.12.1 spec/unit/ridley_spec.rb