I have been using ZenTest AutoTest with the previous version of rspec-
rails. When I updated to 1.1.5 the autotest just hangs. Are these
compatible?
Don F.
I have been using ZenTest AutoTest with the previous version of rspec-
rails. When I updated to 1.1.5 the autotest just hangs. Are these
compatible?
Don F.
On Mon, Sep 29, 2008 at 9:30 PM, Donald F. [email protected]
wrote:
I have been using ZenTest AutoTest with the previous version of rspec-rails.
When I updated to 1.1.5 the autotest just hangs. Are these compatible?
Use either the installed autospec (not autotest) or script/autospec
commands (for rails apps).
http://rspec.info/rdoc/files/History_txt.html
Cheers,
David
Begin forwarded message:
Use either the installed autospec (not autotest) or script/autospec
commands (for rails apps).http://rspec.info/rdoc/files/History_txt.html
Cheers,
David
Hmmm, when I run autospec, all I get is
/opt/local/bin/ruby -S spec/spec_helper.rb … -O spec/spec.opts
Then… nothing.
Any ideas?
Thanks
Ashley
On Tue, Sep 30, 2008 at 8:02 AM, Ashley M.
[email protected] wrote:
Hmmm, when I run autospec, all I get is
/opt/local/bin/ruby -S spec/spec_helper.rb … -O spec/spec.opts
Then… nothing.
Any ideas?
I just noticed that too on a new project. It’s the spec_helper that’s
causing the trouble, so it needs to be ignored. Put this in a
.autotest file at the root of your project:
Autotest.add_hook :initialize do |at|
at.add_exception /spec/spec_helper.rb/
end
Cheers,
David
On Tue, Sep 30, 2008 at 8:15 AM, Ashley M.
[email protected] wrote:
Thanks!
Just out of interest, why does that fix it?
Here’s my spec_helper.rb:
require ‘rubygems’
require ‘spec’ # only added since using autospec
I’ve always included “require ‘spec’” because it lets me use the ruby
command or rdebug on a specific spec file.
I just temporarily disabled the autospec mechanism and ran autotest
directly and the same project had the same problem if I didn’t have
‘spec/spec_helper.rb’ set as an exception in .autotest. So whatever
the problem is, I don’t think it is introduced by wrapping autotest in
autospec. Not really sure what’s up w/ this.
Anybody else have this experience?
On 30 Sep 2008, at 14:06, David C. wrote:
I just noticed that too on a new project. It’s the spec_helper that’s
causing the trouble, so it needs to be ignored. Put this in a
.autotest file at the root of your project:Autotest.add_hook :initialize do |at|
at.add_exception /spec/spec_helper.rb/
end
Thanks!
Just out of interest, why does that fix it?
Here’s my spec_helper.rb:
require ‘rubygems’
require ‘spec’ # only added since using autospec
lib_path = File.expand_path(File.join(File.dirname(FILE), ‘…/
lib’))
$:.unshift(lib_path) unless $:.include?(lib_path)
require ‘followme’
module InMemoryDatabase
def setup_in_memory_database
DataMapper.setup(:default, “sqlite3::memory:”)
FollowMe::Database::Migrator.reset_database!
end
end
Ashley
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs