#200 ✓out-of-date
James B. Byrne

webrat 0.4.3 and rails 2.3.2

Reported by James B. Byrne | March 16th, 2009 @ 03:54 PM

I have a webrat test called from a cucumber step definition that passes in R2.2.2 and fails in R2.3.2, but the browser behaviour remains the same in both instances. The error from the test is raised in ActionView::Paths find_template.

The test is this:

visit root_url

The failure is this:

... Page load was not successful (Code: 500): ... ...

  Extracted source (around line [#18](/projects/10503/tickets/18 "Ticket #18"):
  15:               :id =>; 'link_new_user_session'
  16:   -%>
  17:   <br/>
  18:   <%= render :file =>

'../../public/hll_terms_and_conditions.html' -> 19: 20: <% else -> 21: ...

I suspect this is a webrat problem because webrat is logging it in tmp. I also suspect that it has something to do with giving a relative path from the project root to a static resource.

Comments and changes to this ticket

  • Bryan Helmkamp

    Bryan Helmkamp March 17th, 2009 @ 10:57 AM

    James -- Can you please try hitting the URL with Rails' #get_via_redirect method instead of Webrat's #visit and let me know what you see?

    Thanks,

    -Bryan

  • gaffo

    gaffo May 7th, 2009 @ 05:18 PM

    • Tag changed from bug, verify, visit to bug, stale, verify, visit
    • State changed from “new” to “open”

    I'm also noticing that you have several odd close tags for erb like => and ->

  • gaffo

    gaffo June 3rd, 2009 @ 10:37 AM

    • State changed from “open” to “out-of-date”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Attachments

Pages