Issue #3994 has been reported by Matt Robinson.

----------------------------------------
Bug #3994: Rename specs to have _spec.rb at the end
http://projects.puppetlabs.com/issues/3994

Author: Matt Robinson
Status: Needs design decision
Priority: Low
Assigned to: Matt Robinson
Category: testing
Target version: 
Affected version: 0.25.5
Keywords: 
Branch: 


I'd like to rename the spec files to have _spec.rb at the end.  Most projects 
I've seen do this and I never really thought why, but I ran into a case today 
where the naming of the spec file messes up the spec run if you're in the same 
directory as the spec.

in a puppet checkout:
cd spec/unit/indirector
spec rest.rb # spec/../lib/puppet/rails/param_value.rb:3: uninitialized 
constant ActiveRecord::Base (NameError)

This is happening because there's a file in the same directory called 
active_record.rb (which is a spec for lib/puppet/indirector/rest.rb) that ends 
up being loaded instead of Rail's active_record.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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/puppet-bugs?hl=en.

Reply via email to