spec/support/generator_spec_helpers.rb in clearance-2.0.0.beta1 vs spec/support/generator_spec_helpers.rb in clearance-2.0.0.beta2
- old
+ new
@@ -32,14 +32,10 @@
FileUtils.mkdir_p(destination)
FileUtils.cp(template_file, destination)
end
def versionize_template(template_file)
- if Rails.version >= "5.0.0"
- template_file = ["rails5", template_file].join("/")
- end
-
- template_file
+ ["rails5", template_file].join("/")
end
end
RSpec.configure do |config|
config.include GeneratorSpecHelpers