Sha256: 7499ee8bca9c259e6c24f4aa073d38b88a038baa1aa091c63523b5d20993d276

Contents?: true

Size: 604 Bytes

Versions: 3

Compression:

Stored size: 604 Bytes

Contents

require 'spec_helper'

describe Gensee do
  let(:uri) { 'http://example.gensee.com' }
  let(:uri_without_schema) { 'example.gensee.com' }

  context '.client' do

    before(:all) do
      Gensee.configure do |c|
        c.endpoint = 'http://example.gensee.com'
        c.login = 'hello'
        c.password = 'hello'
      end
    end

    it 'should accept as uri without schema' do
      @client = Gensee.client
      expect(@client.app_client.build_url.to_s).to match %r{http://}
    end

    it 'create an Gensee::Client' do
      expect(Gensee.client).to be_kind_of Gensee::Client
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gensee-0.1.2 spec/gensee_spec.rb
gensee-0.1.1 spec/gensee_spec.rb
gensee-0.1.0 spec/gensee_spec.rb