Sha256: ea58844fd93941c334d8e80d9bf7d97f74fb7ff28caeafb70199800eed8b2ded

Contents?: true

Size: 962 Bytes

Versions: 8

Compression:

Stored size: 962 Bytes

Contents

include BrowserConfigHelper

describe BrowseEverything::Driver::Base do
  let(:driver) { described_class.new({}) }

  describe 'simple properties' do
    subject { driver }

    its(:name)      { is_expected.to eq('Base')         }
    its(:key)       { is_expected.to eq('base')         }
    its(:icon)      { is_expected.to be_a(String)      }
    its(:auth_link) { is_expected.to be_empty          }
    specify         { is_expected.not_to be_authorized }
  end
  describe '#connect' do
    subject { driver.connect({}, {}) }
    it { is_expected.to be_blank }
  end
  describe '#contents' do
    subject { driver.contents('') }
    it { is_expected.to be_empty }
  end
  describe '#details' do
    subject { driver.details('/path/to/foo.txt') }
    it { is_expected.to be_nil }
  end
  describe '#link_for' do
    subject { driver.link_for('/path/to/foo.txt') }
    it { is_expected.to contain_exactly('/path/to/foo.txt', file_name: 'foo.txt') }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
browse-everything-0.15.1 spec/unit/base_spec.rb
browse-everything-0.15.0 spec/unit/base_spec.rb
browse-everything-0.14.2 spec/unit/base_spec.rb
browse-everything-0.14.1 spec/unit/base_spec.rb
browse-everything-0.14.0 spec/unit/base_spec.rb
browse-everything-0.13.1 spec/unit/base_spec.rb
browse-everything-0.13.0 spec/unit/base_spec.rb
browse-everything-0.12.0 spec/unit/base_spec.rb