Sha256: e04f40a80499d35288250c4289fada200a82fdf2b626463424593050bfd0d3ae
Contents?: true
Size: 625 Bytes
Versions: 3
Compression:
Stored size: 625 Bytes
Contents
require 'spec_helper' require 'rake' describe 'status_cat rake tasks' do before( :each ) do @rake = Rake::Application.new Rake.application = @rake Rake::Task.define_task(:environment) load 'lib/tasks/status_cat.rake' end describe 'rake status_cat:check' do it 'puts the status report' do Kernel.should_receive( :puts ).with( kind_of( String ) ) @rake[ 'status_cat:check' ].invoke end end describe 'rake status_cat:cron' do it 'calls StatusCat::Status.cron' do StatusCat::Status.should_receive( :cron ) @rake[ 'status_cat:cron' ].invoke end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
status_cat-0.1.0 | spec/lib/tasks/status_cat.rake_spec.rb |
status_cat-0.0.9 | spec/lib/tasks/status_cat.rake_spec.rb |
status_cat-0.0.8 | spec/lib/tasks/status_cat.rake_spec.rb |