Sha256: ad4cfb3d48e0754a67032095b245939a8d4c826462fa12d4d886999788b400ae
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
# thanks http://robots.thoughtbot.com/post/11957424161/test-rake-tasks-like-a-boss require "rake" shared_context "rake" do let(:rake) { Rake::Application.new } let(:task_name) { self.class.top_level_description } let(:task_path) { "lib/tasks/#{task_name.split(":").first}" } subject { rake[task_name] } before do Rake.application = rake Rake.application.rake_require(task_path, [File.join(File.dirname(__FILE__), "..", "..")]) Rake::Task.define_task(:environment) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geo_redirect-0.3 | spec/support/rake.rb |