Sha256: fbc66ff25025c7fae32f4353e714ee4de133e6977295998a52ecc3853358675c
Contents?: true
Size: 520 Bytes
Versions: 4
Compression:
Stored size: 520 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
geo_redirect-0.6 | spec/support/rake.rb |
geo_redirect-0.5.1 | spec/support/rake.rb |
geo_redirect-0.5 | spec/support/rake.rb |
geo_redirect-0.4 | spec/support/rake.rb |