0
@@ -9,7 +9,7 @@ context "Creating a temporary directory" do
0
specify "changes directory" do
0
assert_not_equal old_location, Dir.pwd
0
block_location = Dir.pwd
0
@@ -18,14 +18,14 @@ context "Creating a temporary directory" do
0
specify "uses a 'rtex' name prefix" do
0
assert_equal 'rtex-', File.basename(Dir.pwd)[0,5]
0
specify "by default, removes the directory after use if no exception occurs" do
0
assert File.exists?(path)
0
@@ -33,7 +33,7 @@ context "Creating a temporary directory" do
0
specify "returns result of last statment if automatically removing the directory" do
0
- result = RTex::Tempdir.open do
0
+ result = RTeX::Tempdir.open do
0
assert_equal :last, :last
0
@@ -41,7 +41,7 @@ context "Creating a temporary directory" do
0
specify "returns result of last statment if not automatically removing the directory" do
0
tempdir = nil # to capture value
0
- result = RTex::Tempdir.open do |tempdir|
0
+ result = RTeX::Tempdir.open do |tempdir|
0
@@ -51,7 +51,7 @@ context "Creating a temporary directory" do
0
specify "does not remove the directory after use if an exception occurs" do
0
assert_raises RuntimeError do
0
assert File.directory?(path)
0
raise "Test exception!"
Comments
No one has commented yet.