aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_software_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_software_spec.rb')
-rw-r--r--Library/Homebrew/test/test_software_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_software_spec.rb b/Library/Homebrew/test/test_software_spec.rb
index 1306a92b9..d4b271177 100644
--- a/Library/Homebrew/test/test_software_spec.rb
+++ b/Library/Homebrew/test/test_software_spec.rb
@@ -19,6 +19,7 @@ class SoftwareSpecTests < Homebrew::TestCase
end
def test_raises_when_accessing_missing_resources
+ @spec.owner = Class.new { def name; "test"; end }.new
assert_raises(ResourceMissingError) { @spec.resource('foo') }
end