[rspec-users] Autotest

Josh Knowles joshknowles at gmail.com
Wed Mar 28 22:15:59 EDT 2007

On 3/28/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:

> I don't think the rspec_autotest even reads the options files.  Look
> at it's code:
> class RspecAutotest < Autotest
>    attr_accessor :spec_command
>    def initialize # :nodoc:
>      @spec_command = "spec --diff unified"
>      super
>      @exceptions = %r%^\./(?:coverage|doc)%
>    end
>         ....
> end

I replaced the default @spec_command with the following:

@spec_command = "#{RAILS_ROOT}/vendor/plugins/rspec/bin/spec --diff unified
--options #{RAILS_ROOT}/spec/spec.opts"

This allows me to run edge-rspec as well as use the options defined in my
spec.opts file.


Josh Knowles
joshknowles at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070328/854243dc/attachment.html 

More information about the rspec-users mailing list