Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update rubocop and enable for Travis build
Pins version to 0.42.x which aligns with the current Sufia versions for rubocop and rubocop-rspec. rubocop_todo was updated using --auto-gen-config and can serve as a starting point for future refactorings.
- Loading branch information
Showing
17 changed files
with
326 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.1 | ||
DisplayCopNames: true | ||
Include: | ||
- '**/Rakefile' | ||
Exclude: | ||
- db/migrate/** | ||
- db/schema.rb | ||
- 'vendor/**/*' | ||
|
||
Rails: | ||
Enabled: true | ||
|
||
# Configuration parameters: AllowURI, URISchemes. | ||
Metrics/LineLength: | ||
Max: 180 | ||
Max: 400 | ||
|
||
RSpec/NestedGroups: | ||
Enabled: false | ||
|
||
RSpec/FilePath: | ||
Enabled: false | ||
|
||
RSpec/LeadingSubject: | ||
Enabled: false | ||
|
||
Style/NumericLiterals: | ||
MinDigits: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
include BrowserConfigHelper | ||
|
||
describe BrowseEverything::Driver::Base do | ||
subject { BrowseEverything::Driver::Base.new({}) } | ||
let(:driver) { described_class.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 } | ||
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 | ||
context '#connect' do | ||
specify { subject.connect({}, {}).should be_blank } | ||
describe '#connect' do | ||
subject { driver.connect({}, {}) } | ||
it { is_expected.to be_blank } | ||
end | ||
context '#contents' do | ||
specify { subject.contents('').should be_empty } | ||
describe '#contents' do | ||
subject { driver.contents('') } | ||
it { is_expected.to be_empty } | ||
end | ||
context '#details' do | ||
specify { subject.details('/path/to/foo.txt').should be_nil } | ||
describe '#details' do | ||
subject { driver.details('/path/to/foo.txt') } | ||
it { is_expected.to be_nil } | ||
end | ||
context '#link_for' do | ||
specify { subject.link_for('/path/to/foo.txt').should == ['/path/to/foo.txt', { file_name: 'foo.txt' }] } | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.