Permalink
Browse files

a simple rake task dependencies spec

  • Loading branch information...
1 parent f37adf4 commit a05ed64312f792a9417342d7965d5ffb0d64e69f @rick committed Nov 25, 2008
Showing with 1 addition and 11 deletions.
  1. +1 −11 spec/rake/dependencies.rake_spec.rb
@@ -86,18 +86,8 @@
end
describe 'when running install_dependencies' do
- before :each do
- stub(@rake["install_rabbit_mq"]).invoke
- end
-
- def run_task
- @rake["install_dependencies"].invoke
- end
-
it 'should install RabbitMQ' do
- pending('learning how to set this mock expectation')
- mock(@rake[:install_rabbit_mq]).invoke
- @rake["install_dependencies"].invoke
+ @rake["install_dependencies"].prerequisites.should include("install_rabbit_mq")
end
end

0 comments on commit a05ed64

Please sign in to comment.