It's strange. I was just saying to my coworker how I don't use the textmate
test runner because it's always giving me weird errors. That said,
environment.rb is kinda early in the boot process to be mucking with Sass
configuration. I put all my Haml & Sass config in an after_initialize block
or initializers.
chris

On Fri, Jun 12, 2009 at 12:40 PM, Sean Lerner <[email protected]>wrote:

>
> Hi Chris,
>
> Line 25:
>
> Sass::Plugin.options[:template_location] = RAILS_ROOT + '/app/views/
> stylesheets'
>
> Sean
>
> On Jun 12, 3:38 pm, Chris Eppstein <[email protected]> wrote:
> > What's going on here: environment.rb at line 25?
> >
> > On Fri, Jun 12, 2009 at 12:28 PM, Sean Lerner <[email protected]
> >wrote:
> >
> >
> >
> > > Hi Folks,
> >
> > > When I run tests with textmate, I get the following error:
> >
> > > ============================================================
> > > NameError: uninitialized constant Sass
> >
> > > method load_missing_constant    in dependencies.rb at line 278
> > > method const_missing    in dependencies.rb at line 467
> > > method const_missing    in dependencies.rb at line 479
> > > at top level    in environment.rb at line 25
> > > method require  in test_helper.rb at line 4
> > > at top level    in test_helper.rb at line 4
> > > method require  in firm_spreadsheet_test.rb at line 1
> > > at top level    in firm_spreadsheet_test.rb at line 1
> > > copy output
> > > Program exited with code #1 after 2.73 seconds.
> > > ============================================================
> >
> > > But when I run tests from the command line, they run okay.
> >
> > > Happens with both haml 2.0.9 and 2.1.0.
> >
> > > Any thoughts on why this might be happening?
> >
> > > Thanks,
> >
> > > Sean
> >
> >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to