Skip to content

Commit

Permalink
Add RuboCop::Git::Options tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spk committed Sep 6, 2015
1 parent 7aa86d5 commit 3c4118b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/rubocop/git/options_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require_relative '../../test_helper'
require 'rubocop/git/options'

describe RuboCop::Git::Options do
it 'fail with no options' do
proc do
RuboCop::Git::Options.new({})
end.must_raise(RuboCop::Git::Options::Invalid)
end

it 'can pass string hash options' do
RuboCop::Git::Options.new('rubocop' => {}, 'commits' => [])
end

it 'can pass symbol hash options' do
RuboCop::Git::Options.new(rubocop: {}, commits: [])
end
end

0 comments on commit 3c4118b

Please sign in to comment.