Sha256: ca12cadb1924b94e0573559e8aa137dfda61c935597764b899d281c4263f6fea

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

require_relative '../../test_helper'
require 'rubocop/git/options'

describe RuboCop::Git::Options do
  it 'fail with no options' do
    _ 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubocop-git2-0.1.4 test/rubocop/git/options_test.rb