Skip to content
Snippets Groups Projects
Commit e4a17308 authored by Lyle Johnson's avatar Lyle Johnson
Browse files

Modified TC_FXDCWindow.rb to suppress warning about local variable shadowing outer variable

parent d88b20d7
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,15 @@ class TC_FXDCWindow < TestCase
app.create
mainWindow.create
end
def test_new
dc = FXDCWindow.new(mainWindow)
dc.drawPoint(0, 0)
dc.end
end
def test_new_with_block
dc = FXDCWindow.new(mainWindow) do |dc|
FXDCWindow.new(mainWindow) do |dc|
dc.drawPoint(0, 0)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment