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