summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2011-03-15 12:57:26 -0700
committerDaniel DeLeo <dan@opscode.com>2011-03-15 12:57:26 -0700
commit1cfe512c960a8df2718d8ad16c83f972c67d1060 (patch)
treecfa4945d52f80f34b96775b89e73d3b9526f84b0 /features
parent5aa579189d76f8adbfcdce71e0defbc859489ebd (diff)
downloadchef-1cfe512c960a8df2718d8ad16c83f972c67d1060.tar.gz
Fix custom matchers for rspec2
Diffstat (limited to 'features')
-rw-r--r--features/steps/cookbook_steps.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/steps/cookbook_steps.rb b/features/steps/cookbook_steps.rb
index af68b9c02f..e55def0094 100644
--- a/features/steps/cookbook_steps.rb
+++ b/features/steps/cookbook_steps.rb
@@ -331,7 +331,7 @@ Then /^the metadata should include a dependency on '(.+)'$/ do |key|
inflated_response.metadata.dependencies.should have_key(key)
end
-Spec::Matchers.define :have_been_deleted do
+RSpec::Matchers.define :have_been_deleted do
match do |file_name|
! File.exist?(file_name)
end
@@ -355,7 +355,7 @@ Then /^the cookbook's files should have been deleted$/ do
end
end
-Spec::Matchers.define :have_checksum_document do |checksum|
+RSpec::Matchers.define :have_checksum_document do |checksum|
match do |checksum_list|
checksum_list.include?(checksum)
end