Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
bertocq committed Nov 20, 2017
1 parent 5de78a8 commit 2620734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/shared_contexts/rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
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}" }
let(:task_path) { "lib/tasks/#{task_name.split(':').first}" }
subject { rake[task_name] }

def loaded_files_excluding_current_rake_file
$".reject {|file| file == Rails.root.join("#{task_path}.rake").to_s }
$LOADED_FEATURES.reject { |file| file == Rails.root.join("#{task_path}.rake").to_s }
end

before do
Expand Down

0 comments on commit 2620734

Please sign in to comment.