Andrea Cirulli

Results 7 issues of Andrea Cirulli

I'm using resque mailer to send email with a pdf attachment created on the fly. This is the code in the controller: ``` begin Notifier.send_contract(params[:struttura],@contract,@struttura).deliver_now rescue => e Rails.logger.error("Error #{e.inspect}...

I have a git project that has several submodules, if I checkout a specific version: ```ruby repo.checkout("origin/#{branch_name}", {strategy: :force}) ``` the submodules folder is empty and it seems I can't...

I have this code: ``` var connection = new Connection(config); connection.on('connect', function (err) { if (err) { console.log("Error connecting to the db", err); connection.close(); } else { console.log('Connected to: ',...

I have this simple groovy like this: rebase.groovy ```groovy def call(String branch) { git.fetch(branch) git.rebase(branch) } ``` I want to test the groovy itself but the problem is that the...

I'm testing groovy file that uses a function from a shared library foo.groovy ```groovy def call(branch) { if (!git.fetch(branch)) { error "Error fetching ${branch}" } } ``` I want to...

I'm trying to test a groovy file that referentiate a class on another groovy file vars/a.groovy ```groovy def runMigrations { if (b.getBoolean('xxxx)) { return true } } ``` If I...

I have a groovy file like this: ```groovy @Field hash = null def foo() { if (!hash) { hash = computeHash() } return hash } ``` In my testing I...