jondkinney/docusign_rest

Rake tests failing

Closed this issue · 9 comments

It seems to successfully run:

Finished in 8.313475 seconds.

28 tests, 25 passed, 3 failures, 0 errors, 0 skips, 51 assertions

but at the end the rake fails:

rake aborted!
Command failed with status (1): [C:/Ruby193/bin/ruby.exe -I"lib;lib;test" -...]
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in block in create_shell_runner' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:incall'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in sh' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:insh'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:82:in ruby' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:inruby'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/testtask.rb:99:in block (2 levels) in define' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:60:inverbose'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/testtask.rb:98:in block in define' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:incall'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in block in execute' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:ineach'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in execute' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:inblock in invoke_with_call_chain'
C:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:ininvoke_with_call_chain'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in invoke' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:ininvoke_task'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block (2 levels) in top_level C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:ineach'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block in top_level' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:instandard_exception_handling'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in top_level' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:inblock in run'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:inrun'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in <top (required)>' C:/Ruby193/bin/rake:23:inload'
C:/Ruby193/bin/rake:23:in `

'
Tasks: TOP => test

C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- helper (LoadError) from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from docusign_rest/configuration_test.rb:1:in `

'

Can you try changing the first line in test/docusign_rest/configuration_test.rb to:

require_relative '../helper'

... and see if that makes a difference?

Sorry ignore the bottom part of that the issue ("custom require"). Error on my end, meant to delete that from the issue entirely.

Failing test issue still there though, which I could resolve only by commenting out the sign_here_tabs: option
{
anchor_string: 'sign here',
anchor_x_offset: '140',
anchor_y_offset: '-12'
}

Comment those out and the rake completes and the tests pass.

Fixed above my moving most of the get_signers functionality outwards into objects that then get the to_json treatment. But having trouble uploading documents still - envelopes get created by the document itself is mangeled, and when you download it in pdf reader says there some error with the document. Any ideas?

I'll see if I can take a look this weekend.

On Thursday, July 19, 2012 at 6:46 PM, Sarge wrote:

Fixed above my moving most of the get_signers functionality outwards into objects that then get the to_json treatment. But having trouble uploading documents still - envelopes get created by the document itself is mangeled, and when you download it in pdf reader says there some error with the document. Any ideas?


Reply to this email directly or view it on GitHub:
#5 (comment)

Great, thanks! Once I have that solved I'll clean some application specific stuff up and send a pull request.

Can you please provide a link to the PDF you're trying to upload? And
do you have a fork I can look at somewhere? I apologize if that is
already included above, I'm mobile right now and can't easily check.

Thanks

Sent from my iPhone

On Jul 19, 2012, at 7:11 PM, Sarge
reply@reply.github.com
wrote:

Great, thanks! Once I have that solved I'll clean some application specific stuff up and send a pull request.


Reply to this email directly or view it on GitHub:
#5 (comment)

Just using test2.pdf that is in the repo.

https://github.com/jskirst/docusign_rest

But just to clarify, I'm running into these problems not just on my fork, but on the original code as well.

Not sure about the status on this one. If you have any updates please feel free to re-open.