Project

General

Profile

Revision e2c07325

Added by Adam Price about 8 years ago

rubocop - Lint/AmbiguousOperator

View differences:

.rubocop.yml
20 20
  Enabled: false
21 21

  
22 22
#LineLength:
23
  #Max: 100
23
  #Max: 100
.rubocop_todo.yml
5 5
# Note that changes in the inspected code, or installation of new
6 6
# versions of RuboCop, may require this file to be generated again.
7 7

  
8
# Offense count: 2
9
Lint/AmbiguousOperator:
10
  Enabled: false
11

  
12 8
# Offense count: 19
13 9
Lint/AmbiguousRegexpLiteral:
14 10
  Enabled: false
test/helpers/command.rb
2 2
module CommandTestHelper
3 3

  
4 4
  def with_params(params, &block)
5
    context "with params "+params.to_s do
5
    context "with params " + params.to_s do
6 6
      let(:with_params) { params }
7
      self.instance_eval &block
7
      self.instance_eval(&block)
8 8
    end
9 9
  end
10 10

  
11 11
  def it_should_call_action(action, params)
12
    it "should call action "+action.to_s do
12
    it "should call action " + action.to_s do
13 13
      arguments ||= respond_to?(:with_params) ? with_params : []
14 14
      cmd.resource.resource_class.expects_with(action, params)
15 15
      cmd.run(arguments)
test/helpers/resource_disabled.rb
6 6
  def with_params(params, &block)
7 7
    context "with params "+params.to_s do
8 8
      let(:with_params) { params }
9
      self.instance_eval &block
9
      self.instance_eval(&block)
10 10
    end
11 11
  end
12 12

  
13 13
  def it_should_call_action(action, params)
14
    it "should call action "+action.to_s do
14
    it "should call action " + action.to_s do
15 15
      arguments ||= respond_to?(:with_params) ? with_params : []
16 16
      cmd.resource.resource_class.expects_with(action, params)
17 17
      cmd.run(arguments)

Also available in: Unified diff