Sha256: f550564d003d6dde926c0970bb0205a4d3e5f06302e7de7046c24c2cb540d5a0

Contents?: true

Size: 520 Bytes

Versions: 3

Compression:

Stored size: 520 Bytes

Contents

# encoding: utf-8
require "spec_helper"

describe  "performing a request" do
  before :each do
    Jiralicious.configure do |config|
      config.uri = "http://jstewart:topsecret@localhost"
    end

    FakeWeb.register_uri(:get,
      Jiralicious.uri + '/ok',
      :status => "200")
  end

  let(:session) { Jiralicious::BasicSession.new }

  it "sets the basic auth info beforehand" do
    Jiralicious::BasicSession.should_receive(:basic_auth).with("jstewart", "topsecret")
    session.request(:get, '/ok')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jiralicious-0.5.0 spec/basic_session_spec.rb
jiralicious-0.4.3 spec/basic_session_spec.rb
jiralicious-0.4.0 spec/basic_session_spec.rb