# Aruba e Bundler

**URL:** <https://www.ruby-forum.com/t/aruba-e-bundler/218579>\
**Category:** IT\
**Created:** [April 4, 2012, 8:10pm UTC](https://www.ruby-forum.com/t/aruba-e-bundler/218579 "2012-04-04T20:10:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [April 4, 2012, 8:10pm UTC](https://www.ruby-forum.com/t/aruba-e-bundler/218579/1 "2012-04-04T20:10:15Z")

</div>

Ciao a tutti,  
sto costruendo un plugin per un framework (Adhearsion) che sviluppo.  
Il plugin contiene un semplice generatore basato su Thor.

#Feature  
Feature: Plugin Demo Controller Generator  
In order to do development on new Adhearsion apps with the Plugin Demo  
plugin  
As an Adhearsion developer  
I want to generate a controller from Plugin Demo

Scenario: Generate a valid controller and its spec  
When I run `ahn create path/somewhere`  
And I cd to “path/somewhere”  
And this gem is installed in that application  
And I run `ahn generate plugin_demo:controller MyController`  
Then the following files should exist:  
| lib/my\_controller.rb |  
| spec/my\_controller\_spec.rb |

#Steps  
When /^this gem is installed in that application$/ do  
gempath = File.expand\_path(’…/…/…/’, **FILE** )  
step “I append to “Gemfile” with “gem ‘plugin-demo’, :path =\>  
‘#{gempath}’””  
step"I successfully run `bundle check`"  
end

# Y U NO WORK?

Molto semplicemente, non facendo caso al codice, lo scenario non  
funziona e  
ovviamente i file non vengono creati.  
Gli stessi step fatti a mano funzionano.

Qualcuno pratico di Cucumber/Aruba e Bundler ha una mezza idea?

Grazie,

Luca
