Sha256: 02e5e5669fa7d314e265de81a10048b243745777544bfcfbe0cb1b72df9404e8

Contents?: true

Size: 454 Bytes

Versions: 9

Compression:

Stored size: 454 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
cs-rubocop-git-0.1.4 test/rubocop/git/options_test.rb
rubocop-git-0.1.3 test/rubocop/git/options_test.rb
rubocop-git-kjanoudi-0.1.4 test/rubocop/git/options_test.rb
rubocop-git-kjanoudi-0.1.3 test/rubocop/git/options_test.rb
rubocop-git-kjanoudi-0.1.2 test/rubocop/git/options_test.rb
rubocop-git-0.1.2 test/rubocop/git/options_test.rb
rubocop-git-0.1.1 test/rubocop/git/options_test.rb
rubocop-git-0.1.0 test/rubocop/git/options_test.rb
rubocop-git-0.0.6 test/rubocop/git/options_test.rb