|
179 | 179 |
|
180 | 180 | it "returns true when input and locations match" do |
181 | 181 | instance = described_class.new({}, |
182 | | - document_location: document_location, |
| 182 | + document_location:, |
183 | 183 | source_locations: [source_location], |
184 | 184 | input_locations: [source_location]) |
185 | 185 | other = described_class.new({}, |
186 | | - document_location: document_location, |
| 186 | + document_location:, |
187 | 187 | source_locations: [source_location], |
188 | 188 | input_locations: [source_location]) |
189 | 189 |
|
|
192 | 192 |
|
193 | 193 | it "returns false when one of these differ" do |
194 | 194 | instance = described_class.new({}, |
195 | | - document_location: document_location, |
| 195 | + document_location:, |
196 | 196 | source_locations: [source_location], |
197 | 197 | input_locations: [source_location]) |
198 | 198 |
|
|
203 | 203 | ) |
204 | 204 |
|
205 | 205 | other = described_class.new({}, |
206 | | - document_location: document_location, |
| 206 | + document_location:, |
207 | 207 | source_locations: [other_source_location], |
208 | 208 | input_locations: [other_source_location]) |
209 | 209 |
|
|
230 | 230 |
|
231 | 231 | it "returns true when input and input locations match" do |
232 | 232 | instance = described_class.new({}, |
233 | | - document_location: document_location, |
| 233 | + document_location:, |
234 | 234 | source_locations: [source_location], |
235 | 235 | input_locations: [source_location]) |
236 | 236 | other = described_class.new({}, |
|
243 | 243 |
|
244 | 244 | it "returns false when input doesn't match" do |
245 | 245 | instance = described_class.new({}, |
246 | | - document_location: document_location, |
| 246 | + document_location:, |
247 | 247 | source_locations: [source_location], |
248 | 248 | input_locations: [source_location]) |
249 | 249 | other = described_class.new({ different: "data" }, |
|
256 | 256 |
|
257 | 257 | it "returns false when input locations don't match" do |
258 | 258 | instance = described_class.new({}, |
259 | | - document_location: document_location, |
| 259 | + document_location:, |
260 | 260 | source_locations: [source_location], |
261 | 261 | input_locations: [source_location]) |
262 | 262 | other = described_class.new({}, |
|
0 commit comments