aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/support/helper/rubocop.rb
blob: 351f2ad826ac16df5d315d96321948d0131f8019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Test
  module Helper
    module RuboCop
      def expect_offense(expected, actual)
        expect(actual).to_not be_nil
        expect(actual.message).to eq(expected[:message])
        expect(actual.severity).to eq(expected[:severity])
        expect(actual.line).to eq(expected[:line])
        expect(actual.column).to eq(expected[:column])
      end
    end
  end
end