Sha256: e64b089f8080cd38d77cfe33f903eb2932f1e5d9962c3c0326da800c561f7464

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

require 'helper'

describe Disqussion::Client do
  context ".new" do
    before do
      @client = Disqussion::Client.new
    end
  
    it "connect using the endpoint configuration" do
      endpoint = URI.parse(@client.api_endpoint)
      connection = @client.send(:connection).build_url(nil).to_s
      connection.should == endpoint.to_s
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
disqussion-0.0.5 spec/disqussion/client_spec.rb
disqussion-0.0.4 spec/disqussion/client_spec.rb
disqussion-0.0.3 spec/disqussion/client_spec.rb
disqussion-0.0.2 spec/disqussion/client_spec.rb
disqussion-0.0.1 spec/disqussion/client_spec.rb