From 3aa22ceb106af61c4aea97cff059112ba3743114 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 14 Jul 2014 08:17:27 +0200 Subject: [PATCH] Small unit test improvements. --- test/unit/session_basic_test.rb | 2 +- test/unit/session_basic_ticket_test.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/session_basic_test.rb b/test/unit/session_basic_test.rb index 0705c2a50..898731534 100644 --- a/test/unit/session_basic_test.rb +++ b/test/unit/session_basic_test.rb @@ -261,7 +261,7 @@ class SessionBasicTest < ActiveSupport::TestCase test 'b recent_viewed' do user = User.lookup(:id => 1) - ticket = Ticket.find(1) + ticket = Ticket.all.last RecentView.log( ticket, user ) recent_viewed_client1 = Sessions::Backend::RecentViewed.new(user, false, '123-1') diff --git a/test/unit/session_basic_ticket_test.rb b/test/unit/session_basic_ticket_test.rb index df56f11d6..32a19f9af 100644 --- a/test/unit/session_basic_ticket_test.rb +++ b/test/unit/session_basic_ticket_test.rb @@ -57,7 +57,6 @@ class SessionBasicTicketTest < ActiveSupport::TestCase # get as stream result1 = client1.push - puts "RR: #{result1.inspect}" assert( result1, "check ticket_overview_list - recall 3" ) end end \ No newline at end of file