Sha256: 277e8465b1d8595c454aadf42dba9e023254405b87313a44415312abb1323346

Contents?: true

Size: 292 Bytes

Versions: 3

Compression:

Stored size: 292 Bytes

Contents

require_relative "../lib/cd"
require "minitest/autorun"

require 'fileutils'

describe Cd do
  include Cd

  it "changes the directory" do
    FileUtils.cd "/"
    old_directory = FileUtils.pwd
    cd "~"
    new_directory = FileUtils.pwd
    assert new_directory != old_directory
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cd-1.0.2 spec/cd_spec.rb
cd-1.0.1 spec/cd_spec.rb
cd-1.0.0 spec/cd_spec.rb