Fix Rake warning in CI (#897)

This commit is contained in:
Nicolas Rodriguez 2021-01-21 21:01:42 +01:00 committed by GitHub
parent 4edc462b61
commit da6cd976ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
require File.join(__dir__, "lib", "draper", "version")
require_relative 'lib/draper/version'
Gem::Specification.new do |s|
s.name = "draper"
@ -12,7 +12,6 @@ Gem::Specification.new do |s|
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.required_ruby_version = '>= 2.2.2'

View File

@ -693,7 +693,7 @@ module Draper
decorator = decorator_class.new(object)
# `print` private method is defined on `Object`
expect{ decorator.print }.not_to raise_error NoMethodError
expect{ decorator.print }.not_to raise_error
end
end
end