You are talking about using rspec_autotest (a separate plugin from
rspec_on_rails), yes?
Have you installed diff-lcs?
(sudo gem install diff-lcs)
If you want to use the rspec server, the autotest spec command should
be:
@spec_command = "script/rails_spec -C --diff unified"
if you don''t want to use the rspec server, it should be:
@spec_command = "spec -C --diff unified"
If you don''t want to have to remember to start the rspec server, just
make a shell function that looks like:
function rspec {
proc=`ps | grep [r]ails_spec_server |wc -l`
if test $proc -lt 1
then
script/rails_spec_server &
sleep 3
fi
rake spec:autotest
}
(tune the sleep amount for your system, so that the spec server has
time to start)
Cheers,
Michael
On 25-Dec-06, at 12:37 PM, s.ross wrote:
> I installed 0.7.5 and the corresponding Rails plugin. Now it seems
> that the rake command is:
>
> rake spec:autotest
>
> I immediately ran into several problems:
>
> 1. rspec_autotest.rb line 30 has curly quotes and makes Ruby choke
> 2. Same line, rails_spec is spelled solid, when it should have the
> underscore
>
> But fixing these didn''t get me back going. Now I have to have a
> rails_spec_server running in one console window (is this recommended
> practice?) and rake spec:autotest gives me:
>
> (druby://localhost:8989) /opt/local/lib/ruby/gems/1.8/gems/
> rspec-0.7.5/lib/spec/runner/command_line.rb:23:in `run'': File or
> directory not found: ?diff (RuntimeError)
> from (druby://localhost:8989) /opt/local/lib/ruby/gems/1.8/
> gems/rspec-0.7.5/lib/spec/runner/command_line.rb:15:in `each''
> from (druby://localhost:8989) /opt/local/lib/ruby/gems/1.8/
> gems/rspec-0.7.5/lib/spec/runner/command_line.rb:15:in `run''
> from (druby://localhost:8989) script/rails_spec_server:16:in
> `run''
> from script/rails_spec:8
>
> The whole setup was working perfectly under 0.7.4 but I can''t even
> get through a single spec pass on 0.7.5. Any hints are appreciated.
>
> Thanks,
>
> Steve
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users