test/test_table_searcher.rb in clevic-0.13.0.b3 vs test/test_table_searcher.rb in clevic-0.13.0.b5

- old
+ new

@@ -56,15 +56,10 @@ assert_raise( RuntimeError ) do table_searcher = Clevic::TableSearcher.new( Passenger.dataset, @simple_search_criteria, @nationality_field ) end end - should "raise an expection for a naked dataset" do - assert_raise( RuntimeError ) do - Clevic::TableSearcher.new( Passenger.db[:passengers], @simple_search_criteria, @nationality_field ) - end - end end context "searching" do setup do @simple_search_criteria.search_text = CreateFakePassengers::NATIONALITIES[0] @@ -129,9 +124,11 @@ @flight_field = Clevic::Field.new( :flight, Passenger, { :display => 'number' } ) end should 'raise an exception for no display value' do @flight_field = Clevic::Field.new( :flight, Passenger, {} ) + @flight_field.display = nil + assert_nil @flight_field.display assert_raise RuntimeError do table_searcher = Clevic::TableSearcher.new( Passenger.dataset, @simple_search_criteria, @flight_field ) table_searcher.search end