Skip to content

Commit

Permalink
Setup test task in Rails 5 style
Browse files Browse the repository at this point in the history
This bug was causing all rake tasks to fail in Rails 5 when draper gem was present
Fixes drapergem#681
  • Loading branch information
audionerd committed Oct 8, 2015
1 parent 57a5141 commit dd24576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/draper/tasks/test.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rake/testtask'

test_task = if Rails.version.to_f < 3.2
test_task = if Rails.version.to_f < 3.2 || Rails.version.start_with?('5')
require 'rails/test_unit/railtie'
Rake::TestTask
else
Expand Down

0 comments on commit dd24576

Please sign in to comment.