test/insertSQLAction.rb in ppcurses-0.0.21 vs test/insertSQLAction.rb in ppcurses-0.0.22

- old
+ new

@@ -12,12 +12,12 @@ string_action = PPCurses::GetStringAction.new('What is your name? ') integer_action = PPCurses::GetIntegerAction.new('Input an integer? ') def do_action(action) - action.show() - action.execute() + action.show + action.execute end #noinspection RubyResolve db = SQLite3::Database.open 'test.db' @@ -27,11 +27,11 @@ sql_action = PPCurses::InsertSQLDataAction.new( [string_action, integer_action], 'Insert into testTable(name, val) values (?, ?)', db) -screen = PPCurses::Screen.new() -screen.run { doAction(sql_action) } +screen = PPCurses::Screen.new +screen.run { do_action(sql_action) } db.close File.delete('test.db')