Sha256: 0ea9c43f12643d1d16b77a950a760a2eeaeed405ce72d7cba2a2aaf94cb4ee2f

Contents?: true

Size: 465 Bytes

Versions: 4

Compression:

Stored size: 465 Bytes

Contents

require 'baabedo'
describe Baabedo::Client do
  it 'can be instantiated' do
    expect{Baabedo::Client.new}.not_to raise_exception
  end

  it 'resets values when exception is thrown during #use' do
    Baabedo.access_token = 'originaltoken'
    expect{
      client = Baabedo::Client.new
      client.access_token = 'differenttoken'
      client.use do
        fail
      end}.to raise_exception

    expect(Baabedo.access_token).to eq('originaltoken')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
baabedo-0.0.4 spec/unit/baabedo/client_spec.rb
baabedo-0.0.3 spec/unit/baabedo/client_spec.rb
baabedo-0.0.2 spec/unit/baabedo/client_spec.rb
baabedo-0.0.1 spec/unit/baabedo/client_spec.rb