# Rails 2.3.2 and Cucumber 0.1.16

**URL:** <https://www.ruby-forum.com/t/rails-2-3-2-and-cucumber-0-1-16/163015>\
**Category:** RSpec\
**Created:** [March 16, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-and-cucumber-0-1-16/163015 "2009-03-16T17:16:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [March 16, 2009, 5:16pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-and-cucumber-0-1-16/163015/1 "2009-03-16T17:16:16Z")

</div>

I am encountering a problem relating to cucumber and Rails 2.3.2 which  
has something to do with Rails 2.3.2 but I am unable, as of yet, to  
determine exactly what is the cause.

Situation: environment.rb RAILS\_GEM\_VERSION = ‘2.3.2’

$ cucumber -r features   
features/components/authentication/authentication.feature  
…  
Page load was not successful (Code: 500):  
…  
Action Controller: Exception caught  
…  
\<Missing template …/…/public/hll\_terms\_and\_conditions.html  
in view path app/views

```
  Extracted source (around line #18:
  15: :id =>; 'link_new_user_session'
  16: -%>
  17: <br/>
  18: <%= render :file =>

```

‘…/…/public/hll\_terms\_and\_conditions.html’ -\>  
19:  
20: \<% else -\>  
21:  
…

3 scenarios  
3 steps passed  
3 steps failed  
10 steps skipped

Situation: environment.rb RAILS\_GEM\_VERSION = ‘2.2.2’

$ cucumber -r features   
features/components/authentication/authentication.feature  
…  
3 scenarios  
16 steps passed

Now, when I start the script/server and go to the project root then I  
get no errors from either R2.2.2 or R2.3.2. I am guessing that  
something in R2.3.2 is changing the pwd from RAILS\_ROOT for the feature  
steps/tests only, since the file specified in the render statement does  
exist (and is correctly displayed by an actual running application).  
But, that is only a guess.

Any ideas as to what is going on here?

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [March 16, 2009, 5:28pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-and-cucumber-0-1-16/163015/2 "2009-03-16T17:28:15Z")

</div>

James B. wrote:

> Now, when I start the script/server and go to the project root then I  
> get no errors from either R2.2.2 or R2.3.2. I am guessing that  
> something in R2.3.2 is changing the pwd from RAILS\_ROOT for the feature  
> steps/tests only, since the file specified in the render statement does  
> exist (and is correctly displayed by an actual running application).  
> But, that is only a guess.

And a wrong one. In both versions RAILS\_ROOT is nil and pwd is the  
application root directory. So, it must be something else.

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [March 16, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/rails-2-3-2-and-cucumber-0-1-16/163015/3 "2009-03-16T20:32:44Z")

</div>

It is starting to look like this is a webrat problem.
