Interestings
- Ruby Gotcha: Extending non-existent class displays confusing error message
class Foo < DontExist
end
describe Foo
it “works” do
Foo.new
end
end
this raises:
uninitialized constant Foo (NameError)
very confusing to say the least. I would have expected the NameError to show that DontExist didn’t exist.
–Glenn