Project

General

Profile

Revision 0aaf4889

Added by Adam Price about 8 years ago

rubocop - Lint/AmbiguousRegexpLiteral

View differences:

test/roles_test.rb
41 41
      }
42 42
      lines = stdout.split("\n")
43 43
      lines.length.must_equal 5
44
      lines[3].must_match /.*damon.dials@megacorp\.com.*/
44
      lines[3].must_match(/.*damon.dials@megacorp\.com.*/)
45 45

  
46 46
      id = lines[3].split(' ')[0]
47 47
      stdout,stderr = capture {
48 48
        hammer.run(%W{activation-key info --id #{id}}).must_equal HammerCLI::EX_OK
49 49
      }
50
      stdout.split("\n")[0].must_match /.*damon.dials@megacorp.com/
50
      stdout.split("\n")[0].must_match(/.*damon.dials@megacorp.com/)
51 51
    end
52 52

  
53 53
  end

Also available in: Unified diff