Sha256: 856e1b99c3554363e38529a8c44dbc57a11c971c77ff4376abe8ec6c8e03e1c4

Contents?: true

Size: 694 Bytes

Versions: 7

Compression:

Stored size: 694 Bytes

Contents

require 'test_helper'

class Salesforce::TaskTest < ActiveSupport::TestCase
  def setup
    p "*" * 80
    p 'Set up code'
    @u = Salesforce::User.first
    puts "Sf User name is: " + @u.name

    @oauth_token = @u.connection.binding.instance_variable_get("@session_id")
    puts "oauth token is: " + @oauth_token
    @rest_svr_url = "https://na7.salesforce.com"
    Salesforce::Rest::AsfRest.setup(@oauth_token, @rest_svr_url, "v21.0")
  end


    # Get detailed info about an object
  def test_get_detail_info

    class_name_tmp = self.class.name.gsub(/\S+::/mi, "")
    class_name = class_name_tmp.gsub(/Test/mi, "")

    puts class_name
    master_get_detail_info(class_name)
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
asf-rest-adapter-0.4.6 test/asf-rest-adapter-rails-app/test/unit/salesforce/task_test.rb
asf-rest-adapter-0.4.5 test/asf-rest-adapter-rails-app/test/unit/salesforce/task_test.rb
asf-rest-adapter-0.4.4 test/asf-rest-adapter-rails-app/test/unit/salesforce/task_test.rb
asf-rest-adapter-0.4.3 test/asf-rest-adapter-rails-app/test/unit/salesforce/task_test.rb
asf-rest-adapter-0.4.2 test/asf-rest-adapter-rails-app/test/unit/salesforce/task_test.rb
asf-rest-adapter-0.3.3 test/asf-rest-adapter-rails-app/test/unit/salesforce/task_test.rb
asf-rest-adapter-0.3.2 test/asf-rest-adapter-rails-app/test/unit/salesforce/task_test.rb