Sha256: c658a9adfbeacd8ab7a8048523c6566bdcf09e0375530e89e6e63db3074f688d

Contents?: true

Size: 727 Bytes

Versions: 16

Compression:

Stored size: 727 Bytes

Contents

require 'test_helper'

class WsOpportunityNoteSearchTest < Test::Unit::TestCase

	def setup
		$sid0 ||= Landslider.login('LOGINTOKEN=' + LS_INSTANCE_NAME)[:session_id]
	end
	
	def test_opportunity_note_search
		search = Landslider::WsOpportunityNoteSearch.new(55952453)
		result = Landslider.get_opportunity_notes($sid0, search)
		assert_equal false, result[:error]
		assert_equal 2, result[:results_returned]
	end
	
	def test_opportunity_note_search_limit_by_results_requested
		search = Landslider::WsOpportunityNoteSearch.new(55952453)
		search.total_results_requested = 1
		result = Landslider.get_opportunity_notes($sid0, search)
		assert_equal false, result[:error]
		assert_equal 1, result[:results_returned]
	end
	
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
landslider-0.5.28 test/ws_opportunity_note_search_test.rb
landslider-0.5.26 test/ws_opportunity_note_search_test.rb
landslider-0.5.24 test/ws_opportunity_note_search_test.rb
landslider-0.5.22 test/ws_opportunity_note_search_test.rb
landslider-0.5.21 test/ws_opportunity_note_search_test.rb
landslider-0.5.20 test/ws_opportunity_note_search_test.rb
landslider-0.5.18 test/ws_opportunity_note_search_test.rb
landslider-0.5.17 test/ws_opportunity_note_search_test.rb
landslider-0.5.16 test/ws_opportunity_note_search_test.rb
landslider-0.5.15 test/ws_opportunity_note_search_test.rb
landslider-0.5.12 test/ws_opportunity_note_search_test.rb
landslider-0.5.11 test/ws_opportunity_note_search_test.rb
landslider-0.5.9 test/ws_opportunity_note_search_test.rb
landslider-0.5.7 test/ws_opportunity_note_search_test.rb
landslider-0.5.6 test/ws_opportunity_note_search_test.rb
landslider-0.5.5 test/ws_opportunity_note_search_test.rb