aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_software_spec.rb
diff options
context:
space:
mode:
authorJack Nagel2014-09-14 11:18:55 -0500
committerJack Nagel2014-09-14 11:19:30 -0500
commit1f162dba6f2355f3d7f58b5bdd0194c4ccbcdc24 (patch)
tree731eb11a663cc1c67522e210a2162fa26dea799c /Library/Homebrew/test/test_software_spec.rb
parent672339b7ca08f791a485f71397b54d7de6ad020f (diff)
downloadhomebrew-1f162dba6f2355f3d7f58b5bdd0194c4ccbcdc24.tar.bz2
Consistently call name on formula instead of relying on to_s
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