Displaying 1 result from an estimated 1 matches for "missingsourceerror".
2007 Aug 26
4
howto regressions on environment.rb in Rails projects
How would one write a spec on environment.rb in a rails app?
I was requiring a gem in environment.rb, but received a
"MissingSourceError". Generally, ruby raises a LoadError when it
can''t find a gem, but rails overrides this to raise a
MissingSourceError (since rails is expecting a required file to be in
lib/...). How would I write a spec to override this behavior, such
that a more friendly error message woul...