[rspec-users] Autotest

Scott Taylor mailing_lists at railsnewbie.com
Wed Mar 28 22:27:05 EDT 2007




On Mar 28, 2007, at 10:15 PM, Josh Knowles wrote:

>
>
> 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.
>


Yeah, I did something similar.

If you use --color in spec.opts, does it work?

Scott



More information about the rspec-users mailing list