Sha256: 24801a5e12c23d8a9bb3b4ce3df84d5aa957fe71fc93355c261421f65f08f965
Contents?: true
Size: 526 Bytes
Versions: 10
Compression:
Stored size: 526 Bytes
Contents
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] } def exclude_current_task $".reject {|file| file == Reparty.root.join("#{task_path}.rake").to_s } end before do Rake.application = rake Rake.application.rake_require(task_path, [Reparty.root], exclude_current_task) Rake::Task.define_task(:environment) end end
Version data entries
10 entries across 10 versions & 1 rubygems