[rspec-users] Rspec 2 (beta.11) view spec haml

Peter Fitzgibbons peter.fitzgibbons at gmail.com
Thu Jun 10 14:53:52 EDT 2010

  Hello All,

I'm trying to view-spec with haml
require 'spec_helper'

describe "user_sessions/new.html.erb" do
   it "renders blank form" do
     user_session = UserSession.new
     assign :user_session, user_session
     render.should have_tag('text.email')

The response is this Failure :
1) user_sessions/new.html.haml renders blank form
     Failure/Error: render
     No route matches {}

I have verified that 'new.html.erb' renders and matches OK.

Is there a way in rspec 2 to enable Haml rendering ?
Peter Fitzgibbons
(847) 859-9550
peter.fitzgibbons at gmail.com
IM GTalk: peter.fitzgibbons
IM AOL: peter.fitzgibbons at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100610/cfbe840d/attachment.html>

More information about the rspec-users mailing list