Sha256: 954db0fa4ef7dc287fe2dd5529dd8e65a0a095b17ab467200f79f35c06c9727e
Contents?: true
Size: 544 Bytes
Versions: 2
Compression:
Stored size: 544 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geo_redirect-0.8 | spec/support/rake.rb |
geo_redirect-0.7 | spec/support/rake.rb |