Skip to content

Commit

Permalink
Break up expand_path specs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Nov 13, 2018
1 parent 67dbe36 commit c620b94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/ruby/core/file/expand_path_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@

it "expands ~ENV['USER'] to the user's home directory" do
File.expand_path("~#{ENV['USER']}").should == @home
end

it "expands ~ENV['USER']/a to a in the user's home directory" do
File.expand_path("~#{ENV['USER']}/a").should == "#{@home}/a"
end

Expand Down

0 comments on commit c620b94

Please sign in to comment.