I can''t seem to find autospec installed anywhere after installing the latest Rails 3 beta. I''ve tried copying the contents of a script/ autospec from a Rails 2 application but that includes all the test/ file none of the spec files. Am I missing something as I miss not having autospec to run.
David Chelimsky
2010-Mar-17 14:05 UTC
[rspec-users] Autospec with RSpec 2 beta for Rails 3
On Mar 17, 2010, at 8:34 AM, DEfusion wrote:> I can''t seem to find autospec installed anywhere after installing the > latest Rails 3 beta. I''ve tried copying the contents of a script/ > autospec from a Rails 2 application but that includes all the test/ > file none of the spec files. > > Am I missing something as I miss not having autospec to run.http://blog.davidchelimsky.net/2010/03/15/rspec-2-and-autotest/ Cheers, David
If I add that into an autospec/discover.rb file autotest fails with this: loading autotest/rspec2 ... /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/bin/rspec:2:in `require'': no such file to load -- rspec/autorun (LoadError) from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/bin/ rspec:2> http://blog.davidchelimsky.net/2010/03/15/rspec-2-and-autotest/ > > Cheers, > David
David Chelimsky
2010-Mar-17 14:33 UTC
[rspec-users] Autospec with RSpec 2 beta for Rails 3
On Mar 17, 2010, at 9:16 AM, DEfusion wrote:> If I add that into an autospec/discover.rb file autotest fails with > this: > > loading autotest/rspec2 > ... > /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/bin/rspec:2:in > `require'': no such file to load -- rspec/autorun (LoadError) > from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/bin/ > rspec:2Do you have RUBYOPT=rubygems in your environment?>> http://blog.davidchelimsky.net/2010/03/15/rspec-2-and-autotest/ >> >> Cheers, >> David > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
On Mar 17, 2:33?pm, David Chelimsky <dchelim... at gmail.com> wrote:> On Mar 17, 2010, at 9:16 AM, DEfusion wrote: > > > If I add that into an autospec/discover.rb file autotest fails with > > this: > > > loading autotest/rspec2 > > ... > > /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/bin/rspec:2:in > > `require'': no such file to load -- rspec/autorun (LoadError) > > ? ? ? ?from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/bin/ > > rspec:2 > > Do you have RUBYOPT=rubygems in your environment? >No, should I or shouldn''t I?
> > Do you have RUBYOPT=rubygems in your environment? > > No, should I or shouldn''t I?Okay I added that, should have done that before my last post, now I get a different issue, the same one Gabriel posted in the comments on the blog post : /usr/lib/ruby/1.8/optparse.rb:1445:in `complete'': invalid option: -O (OptionParser::InvalidOption) from /usr/lib/ruby/1.8/optparse.rb:1443:in `catch'' from /usr/lib/ruby/1.8/optparse.rb:1443:in `complete'' from /usr/lib/ruby/1.8/optparse.rb:1282:in `parse_in_order'' from /usr/lib/ruby/1.8/optparse.rb:1249:in `catch'' from /usr/lib/ruby/1.8/optparse.rb:1249:in `parse_in_order'' from /usr/lib/ruby/1.8/optparse.rb:1243:in `order!'' from /usr/lib/ruby/1.8/optparse.rb:1334:in `permute!'' from /usr/lib/ruby/1.8/optparse.rb:1355:in `parse!'' from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/lib/ rspec/core/command_line_options.rb:22:in `parse'' from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/lib/ rspec/core/command_line_options.rb:13:in `parse'' from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/lib/ rspec/core/runner.rb:29:in `run'' from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/lib/ rspec/core/runner.rb:13:in `autorun'' from /usr/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.4/bin/ rspec:2
David Chelimsky
2010-Mar-17 16:49 UTC
[rspec-users] Autospec with RSpec 2 beta for Rails 3
On Mar 17, 2010, at 11:30 AM, DEfusion wrote:> >>> Do you have RUBYOPT=rubygems in your environment? >> >> No, should I or shouldn''t I? > > Okay I added that, should have done that before my last post, now I > get a different issue, the same one Gabriel posted in the comments on > the blog post : > > /usr/lib/ruby/1.8/optparse.rb:1445:in `complete'': invalid option: -OYou read Gabriel''s comment, but not my response to him :)