spec/features/log_view_spec.rb in marty-2.3.14 vs spec/features/log_view_spec.rb in marty-2.3.15

- old
+ new

@@ -43,11 +43,11 @@ it "updates views correctly" do log_in_as('marty') press('System') show_submenu('Log Maintenance') press('View Log') - wait_for_ready + wait_for_ajax exp_types = ["fatal", "error", "info", "debug", "warn"] exp_messages = ["fatal message", "error message", "info message", "hi mom", "all your base"] exp_details = [ "[\"string\", 123, {\"fatal\"=>\"message\", "\ @@ -70,14 +70,14 @@ wait_for_ready end wait_for_ajax cnt = logview.row_count() expect(cnt).to eq(exp_count) - types = logview.col_values('message_type', cnt, 0) - messages = logview.col_values('message', cnt, 0) - details = logview.col_values('details', cnt, 0). + types = logview.get_col_vals('message_type', cnt, 0) + messages = logview.get_col_vals('message', cnt, 0) + details = logview.get_col_vals('details', cnt, 0). map { |d| CGI.unescapeHTML(d) } - ts = logview.col_values('timestamp_custom', cnt, 0) + ts = logview.get_col_vals('timestamp_custom', cnt, 0) expect(ts).to eq(@ts.slice(0,exp_count)) expect(types).to eq(exp_types.slice(0,exp_count)) expect(messages).to eq(exp_messages.slice(0,exp_count)) expect(details).to eq(exp_details.slice(0,exp_count)) end