Sha256: 56702139fcc3d2f40964b4b12bc20e557ac1a88dd39b4cface2e781e24a9578a

Contents?: true

Size: 822 Bytes

Versions: 2

Compression:

Stored size: 822 Bytes

Contents

include BrowserConfigHelper

describe BrowseEverything::Driver::Base do
  subject { BrowseEverything::Driver::Base.new({}) }

  describe 'simple properties' do
    its(:name)      { should == 'Base'         }
    its(:key)       { should == 'base'         }
    its(:icon)      { should be_a(String)      }
    its(:auth_link) { should be_empty          }
    specify         { should_not be_authorized }
  end
  context '#connect' do
    specify { subject.connect({}, {}).should be_blank }
  end
  context '#contents' do
    specify { subject.contents('').should be_empty }
  end
  context '#details' do
    specify { subject.details('/path/to/foo.txt').should be_nil }
  end
  context '#link_for' do
    specify { subject.link_for('/path/to/foo.txt').should == ['/path/to/foo.txt', { file_name: 'foo.txt' }] }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
browse-everything-0.11.1 spec/unit/base_spec.rb
browse-everything-0.11.0 spec/unit/base_spec.rb