Skip to content

Commit 2dd66f9

Browse files
committed
Raise a helpful error in a test helper
This would've helped us debug something a little quicker
1 parent 9f60237 commit 2dd66f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/support/helpers/analyzer_spec_helpers.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module AnalyzerSpecHelpers
22
def create_source_file(path, content)
3+
raise "Must use in_tmpdir tag" unless @code
34
File.write(File.join(@code, path), content)
45
end
56

0 commit comments

Comments
 (0)