The RSpec Development Team is pleased to announce the release of RSpec-1.0.3. == Changes This is the compatibility release! * Compatible with autotest!!!! (As of ZenTest 3.6.0 - see below) * Compatible with edge rails (as of r6825). * Compatible with jruby (since release 1.0.1) See http://rspec.rubyforge.org/changes.html for more detail. == About RSpec RSpec is a framework which provides programmers with a Domain Specific Language to describe the behaviour of Ruby code with readable, executable examples that guide you in the design process and serve well as both documentation and tests. == Autotest compatibility ZenTest-3.6.0 boasts a new autodiscovery and plugin model that other frameworks can register with and plug into. RSpec-1.0.3 ships with the necessary plugin code, so all you need to do is download and go: For Rails apps: gem install ZenTest --version ''>= 3.6.0'' rails myproject cd myproject ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails script/generate rspec autotest ... and off you go For a non-rails app, you''ll need to follow the convention of parallel lib and spec directories. For example: gem install ZenTest --version ''>= 3.6.0'' gem install rspec --version ''>= 1.0.3'' mkdir stuff cd stuff mkdir lib mkdir spec autotest Enjoy!
I have a sorta large project that used Test::Rails to do rails tests (i.e. model tests, controller tests, view tests, and integration tests). I''m converting the tests slowly over to specs, but it''s going to take me a long time to do. Is there a way to have autotest work with both specs and the tests in the tests/ directory? Or, can I have two autotests running, one for specs and one for tests? On 5/25/07, David Chelimsky <dchelimsky at gmail.com> wrote:> The RSpec Development Team is pleased to announce the release of RSpec-1.0.3. > > == Changes > > This is the compatibility release! > > * Compatible with autotest!!!! (As of ZenTest 3.6.0 - see below) > * Compatible with edge rails (as of r6825). > * Compatible with jruby (since release 1.0.1) > > See http://rspec.rubyforge.org/changes.html for more detail. > > == About RSpec > > RSpec is a framework which provides programmers with a Domain Specific > Language to describe the behaviour of Ruby code with readable, > executable examples that guide you in the design process and serve > well as both documentation and tests. > > == Autotest compatibility > > ZenTest-3.6.0 boasts a new autodiscovery and plugin model that other > frameworks can register with and plug into. RSpec-1.0.3 ships with the > necessary plugin code, so all you need to do is download and go: > > For Rails apps: > > gem install ZenTest --version ''>= 3.6.0'' > rails myproject > cd myproject > ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec > ruby script/plugin install > svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails > script/generate rspec > autotest > > ... and off you go > > For a non-rails app, you''ll need to follow the convention of parallel > lib and spec directories. For example: > > gem install ZenTest --version ''>= 3.6.0'' > gem install rspec --version ''>= 1.0.3'' > mkdir stuff > cd stuff > mkdir lib > mkdir spec > autotest > > Enjoy! > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 5/25/07, Joe Van Dyk <joevandyk at gmail.com> wrote:> I have a sorta large project that used Test::Rails to do rails tests > (i.e. model tests, controller tests, view tests, and integration > tests). > > I''m converting the tests slowly over to specs, but it''s going to take > me a long time to do. Is there a way to have autotest work with both > specs and the tests in the tests/ directory? Or, can I have two > autotests running, one for specs and one for tests?It''s really designed to run one or the other, however, you could, in theory, play with vendor/plugins/rspec_on_rails/lib/autotest/rspec_rails.rb. If you change @spec_command to "ruby ", remove spec/spec.opts, and modify @test_mappings to associate all of the test directories to the app directories like the spec directories are already mapped, you MIGHT get what you want. I haven''t tried this - but give it a shot and let us know how it went. Good luck. Cheers, David> > On 5/25/07, David Chelimsky <dchelimsky at gmail.com> wrote: > > The RSpec Development Team is pleased to announce the release of RSpec-1.0.3. > > > > == Changes > > > > This is the compatibility release! > > > > * Compatible with autotest!!!! (As of ZenTest 3.6.0 - see below) > > * Compatible with edge rails (as of r6825). > > * Compatible with jruby (since release 1.0.1) > > > > See http://rspec.rubyforge.org/changes.html for more detail. > > > > == About RSpec > > > > RSpec is a framework which provides programmers with a Domain Specific > > Language to describe the behaviour of Ruby code with readable, > > executable examples that guide you in the design process and serve > > well as both documentation and tests. > > > > == Autotest compatibility > > > > ZenTest-3.6.0 boasts a new autodiscovery and plugin model that other > > frameworks can register with and plug into. RSpec-1.0.3 ships with the > > necessary plugin code, so all you need to do is download and go: > > > > For Rails apps: > > > > gem install ZenTest --version ''>= 3.6.0'' > > rails myproject > > cd myproject > > ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec > > ruby script/plugin install > > svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails > > script/generate rspec > > autotest > > > > ... and off you go > > > > For a non-rails app, you''ll need to follow the convention of parallel > > lib and spec directories. For example: > > > > gem install ZenTest --version ''>= 3.6.0'' > > gem install rspec --version ''>= 1.0.3'' > > mkdir stuff > > cd stuff > > mkdir lib > > mkdir spec > > autotest > > > > Enjoy! > > _______________________________________________ > > 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 >