Skip to content

Instantly share code, notes, and snippets.

@fixlr
Last active August 29, 2015 13:56
Show Gist options
  • Save fixlr/8941343 to your computer and use it in GitHub Desktop.
Save fixlr/8941343 to your computer and use it in GitHub Desktop.
require 'rake'
shared_context 'rake' do
let(:task_name) { self.class.top_level_description }
subject(:task) { Rake::Task[task_name] }
before(:all) { Rails.application.load_tasks }
its(:prerequisites) { should include('environment') }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment