Project

General

Profile

Revision 0aaf4889

Added by Adam Price about 8 years ago

rubocop - Lint/AmbiguousRegexpLiteral

View differences:

test/setup_test.rb
14 14
        hammer.run(%W{csv organizations -v --csv-file test/data/organizations.csv})
15 15
      }
16 16
      stderr.must_equal ''
17
      stdout.must_match /.*organization 'Mega Corporation'.*/
17
      stdout.must_match(/.*organization 'Mega Corporation'.*/)
18 18
    end
19 19
  end
20 20

  
......
24 24
        hammer.run(%W{csv locations -v --csv-file test/data/locations.csv})
25 25
      }
26 26
      stderr.must_equal ''
27
      stdout.must_match /.*Asia Pacific.*/
27
      stdout.must_match(/.*Asia Pacific.*/)
28 28
    end
29 29
  end
30 30

  
......
34 34
        hammer.run(%W{csv operating-systems -v --csv-file test/data/operatingsystems.csv})
35 35
      }
36 36
      stderr.must_equal ''
37
      stdout.must_match /.*operating system 'Fedora 18'.*/
37
      stdout.must_match(/.*operating system 'Fedora 18'.*/)
38 38
    end
39 39
  end
40 40

  
......
44 44
        hammer.run(%W{csv architectures -v --csv-file test/data/architectures.csv})
45 45
      }
46 46
      stderr.must_equal ''
47
      stdout.must_match /.*architecture 'x86_64'.*/
47
      stdout.must_match(/.*architecture 'x86_64'.*/)
48 48
    end
49 49
  end
50 50

  
......
54 54
        hammer.run(%W{csv partition-tables -v --csv-file test/data/partitiontables.csv})
55 55
      }
56 56
      stderr.must_equal ''
57
      stdout.must_match /.*ptable 'ext4 default'.*/
57
      stdout.must_match(/.*ptable 'ext4 default'.*/)
58 58
    end
59 59
  end
60 60

  
......
64 64
        hammer.run(%W{csv domains -v --csv-file test/data/domains.csv})
65 65
      }
66 66
      stderr.must_equal ''
67
      stdout.must_match /.*domain 'megacorp.com'.*/
67
      stdout.must_match(/.*domain 'megacorp.com'.*/)
68 68
    end
69 69
  end
70 70

  
......
74 74
        hammer.run(%W{csv puppet-environments -v --csv-file test/data/puppetenvironments.csv})
75 75
      }
76 76
      stderr.must_equal ''
77
      stdout.must_match /.*environment 'Development'.*/
77
      stdout.must_match(/.*environment 'Development'.*/)
78 78
    end
79 79
  end
80 80

  
......
85 85
      }
86 86
      stderr.must_equal ''
87 87
      stdout.split("\n").length.must_equal 255
88
      stdout.must_match /.*host 'dhcp129-000\.megacorp\.com'.*/
88
      stdout.must_match(/.*host 'dhcp129-000\.megacorp\.com'.*/)
89 89
    end
90 90
  end
91 91

  
......
95 95
        hammer.run(%W{csv puppet-facts -v --csv-file test/data/puppetfacts.csv})
96 96
      }
97 97
      stderr.must_equal ''
98
      stdout.must_match /.*puppetfacts 'dhcp129-000.megacorp.com'.*/
98
      stdout.must_match(/.*puppetfacts 'dhcp129-000.megacorp.com'.*/)
99 99
    end
100 100
  end
101 101

  
......
117 117
        hammer.run(%W{csv products -v --csv-file test/data/products.csv})
118 118
      }
119 119
      stderr.must_equal ''
120
      stdout.must_match /.*product 'Point of Sale'.*/
120
      stdout.must_match(/.*product 'Point of Sale'.*/)
121 121
    end
122 122
  end
123 123

  
......
127 127
        hammer.run(%W{csv lifecycle-environments -v --csv-file test/data/lifecycleenvironments.csv})
128 128
      }
129 129
      stderr.must_equal ''
130
      stdout.must_match /.*environment 'Development'.*/
130
      stdout.must_match(/.*environment 'Development'.*/)
131 131
    end
132 132
  end
133 133

  
......
137 137
        hammer.run(%W{csv system-groups -v --csv-file test/data/systemgroups.csv})
138 138
      }
139 139
      stderr.must_equal ''
140
      stdout.must_match /.*system group 'Mega Corp HQ'.*/
140
      stdout.must_match(/.*system group 'Mega Corp HQ'.*/)
141 141
    end
142 142
  end
143 143

  
......
147 147
        hammer.run(%W{csv systems -v --csv-file test/data/systems.csv})
148 148
      }
149 149
      stderr.must_equal ''
150
      stdout.must_match /.*system 'host0'.*/
150
      stdout.must_match(/.*system 'host0'.*/)
151 151
    end
152 152
  end
153 153

  
......
157 157
        hammer.run(%W{csv activation-keys -v --csv-file test/data/activationkeys.csv})
158 158
      }
159 159
      stderr.must_equal ''
160
      stdout.must_match /.*activation key 'damon\.dials@megacorp\.com'.*/
160
      stdout.must_match(/.*activation key 'damon\.dials@megacorp\.com'.*/)
161 161
    end
162 162
  end
163 163

  

Also available in: Unified diff