Sha256: b24382c41c1972a8d85b0c1a0391f0fd46f0fc63e325f4af1cac07abbfd489d6

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 Bytes

Contents

describe RuboCop::Git::Options do
  it "fails with no options" do
    expect { RuboCop::Git::Options.new({}) }.to raise_error(/invalid/)
  end

  it "fails with unknown options" do
    expect { RuboCop::Git::Options.new({ foo: 1 }) }.to raise_error(/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

3 entries across 3 versions & 1 rubygems

Version Path
rubocop-git2-0.1.7 spec/rubocop/git/options_spec.rb
rubocop-git2-0.1.6 spec/rubocop/git/options_spec.rb
rubocop-git2-0.1.5 spec/rubocop/git/options_spec.rb