autotest

Error at the end of a capybara autotest... every time...

With autospec / cucumber / capybara running my feature tests I get this line even after going green: (eval):1:in `initialize': can't convert String into Integer (TypeError) Anyone know what this is? I thought it was me, then heard another dev was seeing it to, and when googling I see it in the screen logs on various issues at the capy...

Fastest rails test runner: spork and zentest?

I ran across a thread about slow rspec tests that made me wonder which rails test runner configuration will result in the fastest running recurring tests? I'm aware that ZenTest / autotest-rails can be used in conjunction with spork, but is that the fastest option? ...

Rspec is giving an error with my layout links from the rails tutorial: "Failure/Error: Unable to find matching line from backtrace"

Hi, I'm following the rails tutorial here: http://railstutorial.org/chapters/filling-in-the-layout#top When i run "rspec spec/", i get a bunch of errors that look like this: 1) LayoutLinks should have a Home page at '/' Failure/Error: Unable to find matching line from backtrace stack level too deep # C:/Ruby19/lib/ruby/1.9....

Autospec skipping lib/vendor in a Rails project

Hello, I have a rails project which I am testing with rspec using script/autospec and it has been working great. However, I am now trying to add specs for a Vendor module in spec/lib/vendor/*_spec.rb and autospec ignores the files. I have tried adding the following to .autotest based on the answer provided here with no success: Autote...

Rails autotest with ubuntu and remote growl

I am using ubuntu to develop my rails apps in a virtual machine and I want to send growl notifications in my windows which is in a LAN (growl exists in windows also). I wrote a simple script to send notifications from ubuntu to windows remotely and it worked perfectly (with the ruby-growl gem), but I was wondering if autotest/growl sup...

Adding custom directories (source and spec) to autotest in a Rails 3 project

I have a Rails 3 app that uses RSpec2 as my testing framework, and I'm able to use autotest to watch my model and spec directories for changes and re-run my spec suite when files change. I'd like to add a directory with some custom classes in it (RAILS_ROOT/lib/some_project/lib/*.rb) and their corresponding specs (RAILS_ROOT/spec/some_p...

autotest on ubuntu does nothing

Running either $autotest or $autotest -f gives the same result: # Waiting since [timestamp] Changing a controller or spec file just gets that line repeated (with a newer timestamp). If I try $autotest -v, it does not include the spec or controller among the list of files for which no tests match, which I suppose is good; but it doesn't...

Autospec does nothing when I run

I have failing tests that show up when I do a 'rake spec' or the like. However when I run autospec it outputs the following then does nothing and returns me to the command prompt. $ autospec (Not running features. To run features in autotest, set AUTOFEATURE=true.) loading autotest/rails_rspec style: RailsRspec How do I get auto...

Autotest with Rspec2 in Rails 3 Can't Find Binaries

I'm trying to get autotest back up and running after moving my project to rails 3. After upgrading to rspec 2.0.0.beta.22, I can't seem to run autotest. I get the following: bundler: command not found: c:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.0.beta.22/bin/rspec even though the binary does in fact exist in that location. ...

Autotest stalls when launched

I'm trying to get a Rails (version 2.3.5) app set up to run RSpec and Autotest. I've got both rspec (1.2.9) and rspec-rails (1.2.9) vendored as plugins in the app. I then have ZenTest 4.4.0, Autotest (4.3.2) and Autotest Rails (4.1.0) gems installed. Whenever I run the autotest command in the app, all I get is this: loading autotest/r...

Rspec, Spork, & Autotest Error

I'm trying to teach myself rails by going through http://railstutorial.org/. I quit working on the tutorial app last night and then came back to it today. Now I'm getting an error when I start up the Spork server. Here is a trace of the error. spork Using RSpec Loading Spork.prefork block... can't convert nil into Hash (TypeError) /usr/...

Rails 3 - How do I get Rspec spec/ & autotest to work?

I was all setup with Rspec and Autotest before I updated to Rails 3. When running rspec spec/ I'm getting: * spec/spec.opts is deprecated. * please use ./.rspec or ~/.rspec instead. I tried changed spec.opts to spec.rspec and running rspec spec/ again. But now I get a whole mess of warnings: DEPRECATION WARNING: Use toplevel init.rb...

Autotest - Load Error - Error posted

bundle exec /Users/new2/.rvm/rubies/ruby-1.9.2-p0/bin/ruby -S /Users/new2/.rvm/gems/ruby-1.9.2-p0@rails3tut/gems/rspec-core-2.0.1/bin/rspec --autotest '/Users/new2/work/rails_projects/sample_app/spec/controllers/pages_controller_spec.rb' /Users/new2/.rvm/gems/ruby-1.9.2-p0@rails3tut/gems/rspec-core-2.0.1/lib/rspec/core/configuration....

Error running autotest on Windows 7 with Rails 3, Ruby 1.9.2

Installing and running Rails 3 and Ruby 1.9.2 on Windows 7 went rather smooth. It's only now that I want to run autotest that I'm running into problems. The error looks frustratingly simple, but I can't figure out how to solve it. I have the following gems in my Gemfile: gem 'autotest' gem 'autotest-rails-pure' But then when I run ...

Autotest not running in Ruby 1.9.2, only 1.8.7

UPDATE: It works now. I truly don't know what happened. I'll leave this Q up for some time, in case other experience the same. If not, I'll soon delete it. TLDR: autotest rspec works with ruby1.8.7 but not in ruby1.9.2. Using rails3, rspec2, autotest 4.4.1. In 1.9.2, it doesn't do anything after starting autotest. OK, now I'm real tire...