Sha256: 36959d32ec7dad1b764a37f0f7bc0b6cc3f3d8d9b9cc8cec381bf0ed002e31b5

Contents?: true

Size: 681 Bytes

Versions: 10

Compression:

Stored size: 681 Bytes

Contents

require 'spec_helper'

require 'rocket_fuel/fix'
require 'fakefs/spec_helpers'

require 'fileutils'

describe RocketFuel::Fix::RbenvFix do
  include FakeFS::SpecHelpers
  let(:fix) { RocketFuel::Fix::RbenvFix.new }

  it 'has a title' do
    expect(fix.title).to match(/rbenv/i)
  end

  it 'removes files in the home directory' do
    path = RocketFuel::Precheck::RbenvCheck.home_path
    FileUtils.mkdir_p(path)
    fix.run
    expect(FileTest.exist?(path)).to be(false)
  end

  it 'removes files in the global directory' do
    path = RocketFuel::Precheck::RbenvCheck.global_path
    FileUtils.mkdir_p(path)
    fix.run
    expect(FileTest.exist?(path)).to be(false)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rocket_fuel-0.2.0 spec/rocket_fuel/fix/rbenv_fix_spec.rb
rocket_fuel-0.1.0 spec/rocket_fuel/fix/rbenv_fix_spec.rb
rocket_fuel-0.0.8 spec/rocket_fuel/fix/rbenv_fix_spec.rb
rocket_fuel-0.0.7 spec/rocket_fuel/fix/rbenv_fix_spec.rb
rocket_fuel-0.0.6 spec/rocket_fuel/fix/rbenv_fix_spec.rb
rocket_fuel-0.0.5 spec/rocket_fuel/fix/rbenv_fix_spec.rb
rocket_fuel-0.0.4 spec/rocket_fuel/fix/rbenv_fix_spec.rb
rocket_fuel-0.0.3 spec/rocket_fuel/fix/rbenv_fix_spec.rb
rocket_fuel-0.0.2 spec/rocket_fuel/fix/rbenv_fix_spec.rb
rocket_fuel-0.0.1 spec/rocket_fuel/fix/rbenv_fix_spec.rb