Skip to content

Name method conflicts with ZenTest #11

jbhannah opened this Issue Jun 3, 2010 · 4 comments

3 participants

jbhannah commented Jun 3, 2010

When using Spork, RSpec, and Cucumber with a Rails project that uses Settingslogic, trying to start Spork causes the following error:

No such file or directory - No file specified as Settingslogic source (Errno::ENOENT)
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:101:in `initialize'
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:63:in `new'
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:63:in `instance'
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:10:in `name'
/Library/Ruby/Gems/1.8/gems/ZenTest-4.3.2/lib/ZenTest.rb:3:in `each_object'

This appears to be because the "name" method called by ZenTest conflicts with a Settingslogic method, which causes Settingslogic to throw an error. This appears to be fixed[1] by mtarnovan's fork of Settingslogic by just removing the method; can we have this or an equivalent change made in this branch, and have a new version of the gem made available that includes this fix?



I'm seeing this also


Any chance this could be merged?

@goosetav goosetav added a commit to goosetav/settingslogic that referenced this issue Aug 2, 2011
@goosetav goosetav fixes settingslogic #11 975252e



I guess for the time being, you can just put gem "settingslogic" after gem "ZenTest" and it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.