test/manns_spec.rb in hoe-manns-1.1.0 vs test/manns_spec.rb in hoe-manns-1.2.0
- old
+ new
@@ -1,9 +1,9 @@
require 'rspec'
require 'digest'
-require File.expand_path(File.join(File.dirname(__FILE__), '../lib/hoe/manns'))
-require File.expand_path(File.join(File.dirname(__FILE__), 'spec_helper'))
+require 'lib/hoe/manns'
+require 'test/spec_helper'
describe 'Hoe::Manns' do
describe 'update_gemfile_lock_method' do
before do
@checksumgemlock = Digest::SHA2.hexdigest(File.read('Gemfile.lock'))
@@ -21,12 +21,12 @@
describe 'remove_pre_gemspec' do
it 'removes the old gemspec' do
Hoe::Manns.remove_pre_gemspec_method
- gemspec = true
- gemspec = false if !Dir.glob('*.gemspec').empty?
- expect(gemspec) == true
+ gemspec = false
+ gemspec = true if Dir.glob('*.gemspec').empty? == true
+ expect(gemspec) == false
end
end
describe 'update_workspace' do
it 'updates the workspace' do