Project

General

Profile

Revision e2c07325

Added by Adam Price about 8 years ago

rubocop - Lint/AmbiguousOperator

View differences:

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)

Also available in: Unified diff