Sha256: b6215ea6b71b46a30ecc8372ff6188d9290e3e93e386d7b1e443064a0f13bc88

Contents?: true

Size: 821 Bytes

Versions: 1

Compression:

Stored size: 821 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

1 entries across 1 versions & 1 rubygems

Version Path
browse-everything-0.10.5 spec/unit/base_spec.rb