Sha256: 30eb37d126e17f10c5a3401c1a0ccb1e59b7f01a5942bc998bb9fe40f37d72e3
Contents?: true
Size: 611 Bytes
Versions: 1
Compression:
Stored size: 611 Bytes
Contents
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 expect( Kernel ).to 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 expect( StatusCat::Status ).to receive( :cron ) @rake[ 'status_cat:cron' ].invoke end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
status_cat-0.1.1 | spec/lib/tasks/status_cat.rake_spec.rb |