diff --git a/draper.gemspec b/draper.gemspec index cdb79fc..84fafc6 100644 --- a/draper.gemspec +++ b/draper.gemspec @@ -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' diff --git a/spec/draper/decorator_spec.rb b/spec/draper/decorator_spec.rb index a849874..876a3dd 100644 --- a/spec/draper/decorator_spec.rb +++ b/spec/draper/decorator_spec.rb @@ -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