Skip to content

Commit

Permalink
Fixed session_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-Ouie committed Jun 16, 2011
1 parent 297da6d commit d63aced
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions test/session_test.rb
Expand Up @@ -154,43 +154,7 @@ def rewind
end

asserts("output") { @output }.matches "debugged file set to #{__FILE__}"

context "and running the debugger" do
hookup do
@output = nil

catch :start_debugging! do
@output = run_debugger ["r"]
end
end

asserts("output") { @output }.nil
end
end

context "running the debugger when file isn't set" do
hookup do
@output = nil

catch :start_debugging! do
@output = run_debugger ["r"]
end
end

asserts("output") { @output }.matches "error: file is not set"
end

context "running the debugger when file doesn't exist" do
hookup do
@output = nil
PryDebug.file = "#{__FILE__}_doesnt_exist.rb"

catch :start_debugging! do
@output = run_debugger ["r"]
end
end

asserts("output") { @output }.matches "error: file does not exist"
asserts(:file).equals __FILE__
end

context "after enabling break-on-raise" do
Expand Down

0 comments on commit d63aced

Please sign in to comment.