Skip to content

Commit

Permalink
Add test for path_obj & @path_obj equality
Browse files Browse the repository at this point in the history
  • Loading branch information
ojab committed Apr 5, 2018
1 parent 7c48d48 commit 4eb38c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/load_path_cache/cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ def test_development_mode
dev_yes_cache.stubs(:now).returns(time + 31)
assert dev_yes_cache.find('new')
end

def test_path_obj_equal?
path_obj = []
cache = Cache.new(NullCache, path_obj)

path_obj.unshift(@dir1)

assert_equal("#{@dir1}/a.rb", cache.find('a'))
end
end
end
end

0 comments on commit 4eb38c8

Please sign in to comment.