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"
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
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
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
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