Re: [rspec-users] unable to access flash from rails helper spec since upgrade to 1.1.4

2008-07-03 Thread Jim Morris
Ok, its messy but this works... before :each do init_haml_helpers helper.extend Haml helper.extend Haml::Helpers helper.send :init_haml_helpers end it "should display flash" do for name in [:notice, :warning, :error] flash[name]= "flash #{name.to_s} message"

Re: [rspec-users] unable to access flash from rails helper spec since upgrade to 1.1.4

2008-07-03 Thread David Chelimsky
On Jul 3, 2008, at 1:29 AM, Jim Morris wrote: Hi David, Thanks that worked, and fixed that problem. Now I have run into another problem, from the same blog example (which I'll update once I get it all to work). Within the application helper I call haml_tag, which works fine when the app

Re: [rspec-users] unable to access flash from rails helper spec since upgrade to 1.1.4

2008-07-02 Thread Jim Morris
Hi David, Thanks that worked, and fixed that problem. Now I have run into another problem, from the same blog example (which I'll update once I get it all to work). Within the application helper I call haml_tag, which works fine when the app runs. (used to be called open). However when I t

Re: [rspec-users] unable to access flash from rails helper spec since upgrade to 1.1.4

2008-07-02 Thread David Chelimsky
On Jul 2, 2008, at 7:12 PM, Jim Morris wrote: Hi, Many moons ago I wrote this blog entry... http://blog.wolfman.com/articles/2007/07/14/using-rspec-to-test-haml-helpers I just upgraded that rails project to use rspec 1.1.4 and associated rspec_rails. It seems that my helper when called fr

[rspec-users] unable to access flash from rails helper spec since upgrade to 1.1.4

2008-07-02 Thread Jim Morris
Hi, Many moons ago I wrote this blog entry... http://blog.wolfman.com/articles/2007/07/14/using-rspec-to-test-haml-helpers I just upgraded that rails project to use rspec 1.1.4 and associated rspec_rails. It seems that my helper when called from the helper specs no longer are able to access f