module RSpecCommand::Rake
An RSpec helper module for testing Rake
tasks without running them in a full subprocess. This improves test speed while still giving you most of the benefits of integration testing.
@api public @since 1.0.0 @example
RSpec.configure do |config| config.include RSpecCommand::Rake end
@example Enable for a single example group
describe 'mytask' do rakefile <<-EOH ... EOH rake_task 'mytask' its(:stdout) { it_expected.to include('1.0.0') } end