Permalink
Browse files

Add read_info(!) tests.

  • Loading branch information...
1 parent ef88281 commit efe27fc63c7f8da364b5cde2ad13dd9d9f48054b @Raynes Raynes committed Apr 6, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/elixir/file_test.exs
@@ -96,4 +96,13 @@ defmodule FileTest do
File.read!("fixtures/missing.txt")
end
end
+
+ test :read_info do
+ {:ok, info} = File.read_info("lib")
+ assert info.mtime
+ end
+
+ test :read_info! do
+ assert File.read_info!("lib").mtime
+ end
end

0 comments on commit efe27fc

Please sign in to comment.