Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return error for non existent barn definition #9

Open
achiurizo opened this issue Sep 29, 2013 · 0 comments
Open

return error for non existent barn definition #9

achiurizo opened this issue Sep 29, 2013 · 0 comments

Comments

@achiurizo
Copy link
Collaborator

Barn should return an error early when a non-existent definition is being referenced. e.g

Factory::MyBarn.define :non_existent

 undefined method `call' for nil:NilClass
 @ vendor/cache/barn-78717f0e3170/lib/barn/builders/hash.rb:13:in `call'
   vendor/cache/barn-78717f0e3170/lib/barn/builders/activerecord.rb:39:in `call'
   vendor/cache/barn-78717f0e3170/lib/barn/namespace.rb:15:in `build'

The build_chain instead picks up the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant