test/unit/basic_test.rb in activesalesforce-1.0.0 vs test/unit/basic_test.rb in activesalesforce-1.1.0
- old
+ new
@@ -16,11 +16,11 @@
=end
require 'rubygems'
#require_gem 'activesalesforce', '>= 0.4.3'
-require File.dirname(__FILE__) + '/../../lib/activesalesforce'
+require File.dirname(__FILE__) + '/../../lib/asf_adapter'
require File.dirname(__FILE__) + '/recorded_test_case'
require 'pp'
@@ -43,11 +43,11 @@
attr_reader :contact
def initialize(test_method_name)
super(test_method_name)
- #force_recording :test_master_detail
+ #force_recording :test_create_a_contact
end
def setup
puts "\nStarting test '#{self.class.name.gsub('::', '')}.#{method_name}'"
@@ -130,9 +130,13 @@
def test_assignment_rule_id
Contact.connection.binding.assignment_rule_id = "1234567890"
contact.save
end
+ def test_client_id
+ Contact.connection.binding.client_id = "testClient"
+ contact.save
+ end
def test_add_notes_to_contact
n1 = Note.new(:title => "My Title", :body => "My Body")
n2 = Note.new(:title => "My Title 2", :body => "My Body 2")
\ No newline at end of file