[rspec-users] ZenTest autotest now handles RSpec, yay!

David Chelimsky dchelimsky at gmail.com
Tue Apr 17 03:23:11 EDT 2007


On 4/17/07, Matt Aimonetti <matttemp at gmail.com> wrote:
> Anyone knows how to get autotest to check on a plugin spec? I'm working on a
> plugin and I would love to use autotest to check on my specs.
>
> On a different note, RSpec has a nice rake command: rake spec:plugins  but I
> wish I could do rake spec:plugins PLUGIN=my_plugin and only run the specs
> ofor my plugin. (I had issues with other plugins crashing the test before it
> would reach my plugin :( )

Just add this to your own spec file:

  desc "Run my plugin's specs"
  Spec::Rake::SpecTask.new(:plugins => spec_prereq) do |t|
    t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""]
    t.spec_files = FileList['vendor/plugins/my_plugin/spec/**/*_spec.rb']
  end



>
> Thanks
>
> Matt
>
>
>
>
>
>
> On 4/16/07, Scott Taylor <mailing_lists at railsnewbie.com > wrote:
> >
> > Yes, I guess there are tests.
> >
> > I'll look into doing this...
> >
> > Scott
> >
> >
> > On Apr 13, 2007, at 8:09 PM, Josh Knowles wrote:
> >
> > >
> > >
> > > On 4/13/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
> > > I'm actually pretty close to finishing Autospec - a port of autotest
> > > to RSpec (although for the time being it only works for standalone
> > > projects).  I should probably be done with this standalone version in
> > > a week or so.
> > >
> > > While I definitely appreciate you taking the time to add standalone
> > > spec support, is there any reason you are forking this as opposed
> > > to just submitting a patch to Ryan?  He has put in quite a bit of
> > > effort in the extensibility of Autotest, I'd hate to see that forked.
> > >
> > >
> > > --
> > > Josh Knowles
> > > joshknowles at gmail.com
> > > http://joshknowles.com
> > > _______________________________________________
> > > rspec-users mailing list
> > > rspec-users at rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list