Sha256: abcabd2d49c551651be8488ba98464da219e3ea842e7a87e79a33d5781078aa5

Contents?: true

Size: 671 Bytes

Versions: 10

Compression:

Stored size: 671 Bytes

Contents

require 'spec_helper'

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

require 'fileutils'

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

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

  it 'removes files in the home directory' do
    path = RocketFuel::Precheck::RvmCheck.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::RvmCheck.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/rvm_fix_spec.rb
rocket_fuel-0.1.0 spec/rocket_fuel/fix/rvm_fix_spec.rb
rocket_fuel-0.0.8 spec/rocket_fuel/fix/rvm_fix_spec.rb
rocket_fuel-0.0.7 spec/rocket_fuel/fix/rvm_fix_spec.rb
rocket_fuel-0.0.6 spec/rocket_fuel/fix/rvm_fix_spec.rb
rocket_fuel-0.0.5 spec/rocket_fuel/fix/rvm_fix_spec.rb
rocket_fuel-0.0.4 spec/rocket_fuel/fix/rvm_fix_spec.rb
rocket_fuel-0.0.3 spec/rocket_fuel/fix/rvm_fix_spec.rb
rocket_fuel-0.0.2 spec/rocket_fuel/fix/rvm_fix_spec.rb
rocket_fuel-0.0.1 spec/rocket_fuel/fix/rvm_fix_spec.rb