Skip to content
Browse files

Update tests

  • Loading branch information...
1 parent e5dce25 commit 6eca53f3965e053250ebf9ab1715c94085c9337d @tmann-ttc tmann-ttc committed
Showing with 10 additions and 1 deletion.
  1. +10 −1 test/netsuite_client_test.rb
View
11 test/netsuite_client_test.rb
@@ -12,7 +12,7 @@ def setup
end
@client = NetsuiteClient.new(:account_id => ENV['NS_ACCOUNT_ID'], :email => ENV['NS_EMAIL'], :password => ENV['NS_PASSWORD'], :role => ENV['NS_ROLE'], :endpoint_url => ENV['NS_ENDPOINT_URL'])
- @client.debug = true
+ # @client.debug = true
end
def test_init
@@ -43,6 +43,15 @@ def test_get_select_value
assert values.find {|value| value.name == "Web"}
end
+ def test_add
+ support_case = SupportCase.new
+ support_case.title = 'title'
+ support_case.incomingMessage = 'description'
+ support_case.email = 'test@example.com'
+ res = @client.add(support_case)
+ assert res.success?
+ end
+
# inventory item tests are currently disabled
# FIXME: 2011_2 requires cogs and asset accounts
# def test_add_inventory_item

0 comments on commit 6eca53f

Please sign in to comment.
Something went wrong with that request. Please try again.