Sha256: 04505ac0a121baf1caa22c90e72ddb3746461c61213eba6fa157bce757bb581d

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

require 'rspec'
require File.join(File.dirname(__FILE__), '..', 'lib/hoe/manns')
require File.join(File.dirname(__FILE__), '..', 'lib/hoe/manns-methods')
require File.join(File.dirname(__FILE__), '..', 'lib/hoe/version')
require File.join(File.dirname(__FILE__), '..', 'spec/spec_helper')
require 'fileutils'

RSpec.describe Hoe::Manns do

  it 'installs a bundle' do
    success = Hoe::MannsMethods.bundle_install
    expect(success)
  end

  it 'creates a new Gemfile.lock' do
    FileUtils.rm(File.join(File.dirname(__FILE__), '..', 'Gemfile.lock'))
    Hoe::MannsMethods.update_gemfile_lock_method
    avail = File.exist?(File.join(File.dirname(__FILE__), '..',
                                  'Gemfile.lock'))
    expect(avail)
  end

  it 'removes the old gemspec' do
    FileUtils.touch('hoe-manns.gemspec')
    Hoe::MannsMethods.remove_pre_gemspec_method
    gemspec = Dir.glob('*.gemspec').empty?
    expect(gemspec)
  end

  it 'cleans the pkg' do
    Hoe::MannsMethods.clean_pkg_method
  end

  it "has a version number" do
    expect(Hoe::Manns::VERSION).not_to be nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hoe-manns-2.1.5 spec/manns_spec.rb