Sha256: 2c267c55dfeae69feef9240191aa00bb7ddb6dd84d3648e8171d15bf4927c0e7

Contents?: true

Size: 1016 Bytes

Versions: 8

Compression:

Stored size: 1016 Bytes

Contents

require 'test_helper'

class WsAccountNoteSearchTest < Test::Unit::TestCase

	def setup
		# Landslider.logger = $stdout
		$sid3 ||= Landslider.login('LOGINTOKEN=' + LS_INSTANCE_NAME)[:session_id]
	end
	
	def test_account_note_search
		search = Landslider::WsAccountNoteSearch.new(55647822)
		result = Landslider.get_account_notes($sid3, search)
		assert_equal false, result[:error]
		assert_equal 8, result[:results_returned]
	end
	
	def test_account_note_search_limit_by_updated_on
		search = Landslider::WsAccountNoteSearch.new(55647822)
		search.updated_on = '2011-04-21'
		result = Landslider.get_account_notes($sid3, search)
		assert_equal false, result[:error]
		assert_equal 2, result[:results_returned]
	end
	
	def test_account_note_search_limit_by_results_requested
		search = Landslider::WsAccountNoteSearch.new(55647822)
		search.total_results_requested = 4
		result = Landslider.get_account_notes($sid3, search)
		assert_equal false, result[:error]
		assert_equal 4, result[:results_returned]
	end
	
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
landslider-0.5.18 test/ws_account_note_search_test.rb
landslider-0.5.17 test/ws_account_note_search_test.rb
landslider-0.5.16 test/ws_account_note_search_test.rb
landslider-0.5.15 test/ws_account_note_search_test.rb
landslider-0.5.12 test/ws_account_note_search_test.rb
landslider-0.5.11 test/ws_account_note_search_test.rb
landslider-0.5.9 test/ws_account_note_search_test.rb
landslider-0.5.7 test/ws_account_note_search_test.rb