Displaying 20 results from an estimated 2000 matches similar to: "Using rspec_on_rails without a test database"
2007 May 23
4
autotest and rspec for a non-rails project
hi list -
should it be possible to use autotest to continuously run specs for a
non-rails project? when i execute autotest in the base directory of my
project, it complains that it cannot load rspec_autotest, however looking at
rspec_autotest[1] and rspec_rails_autotest.rb, it appears as though both are
geared towards rails (perhaps even rspec on rails).
cheers,
jean-pierre
[1]
2007 Apr 13
21
ZenTest autotest now handles RSpec, yay!
Josh Knowles http://joshknowles.com/ just let me know that ZenTest Autotest
3.50 now handles your RSpec specs.
http://blog.zenspider.com/archives/2007/04/zentest_version_350_has_been_released.html
That''s a great news.
Josh also shared with me a quick hack to make autotest work with only the
RSpec plugin installed.
Add the following into your ~/.autotest file
2008 Mar 20
1
Combining autotest, rspec, rspec_on_rails and spec-server
Hello,
I''ve been trying to google the definitive way to combine autotest,
rspec, and spec-server, but to no avail. It seems like there are lots
of suggestions from old versions. Furthermore, some commands such as
rake:autotest don''t seem to be around anymore.
So, is it required to install ZenTest as a gem? I have version 3.9.1.
I believe this gets me the autotest
2007 Oct 26
7
rspec_autotest failing
Is the rspec_autotest plugin mentioned here,
http://blog.nicksieger.com/articles/2006/11/15/rspec-autotest-now-a-rails-plugin
the accepted method of auto testing specs? It''s an old article, and after
grabbing the plugin, and giving it a run, it fails with:
$ rake spec:autotest:rails
trunk/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/rails_example.rb:31: undefined method
2007 May 30
18
autotest and rspec_on_rails not happy
Hi,
I''ve been using the rspec and rspec_on_rails plugins quite happily on
my Rails project for a while now. Today I noticed the autotest
support in RSpec-1.0.3 and decided to give that a spin.
Oh tragedy!
$ autotest
loading autotest/rails_rspec
./vendor/plugins/rspec_on_rails/lib/autotest/rails_rspec.rb:33:in
`initialize'': undefined method `singularize''
2006 Dec 21
7
rspec_autotest no longer re-runs tests with rspec 0.7.5
Has anyone else encountered this problem?
What I mean is, rspec_autotest runs all specs, then waits. When you
change a spec, it reruns that spec. However, if that spec now passes,
it should run the whole suite again, so you can see the next one to
work on. It no longer does this. This renders it somewhat useless.
Does anyone have autotest working with rspec 0.7.5, or does anyone
have any
2007 Oct 04
7
Using Predicates to look at an array..
Hi all,
I have an array of shipping_type''s being returned, and I want to see
what is in there. In the past I have done:
shipping_type.include?(Cart::SHIPPING_TYPE_REGULAR).should be_true
This works, but looks really ugly.. It just doesn''t roll of the
tongue very well. I then looked up the use of Predicates, which I
had been using, but hadn''t realized:
2007 Aug 06
5
using RSpec''s trunk in non-rails projects w/ Autotest
I believe for rails projects you can put rspec''s code repos into
vendor/plugins, and autotest will automatically use the rspec binary
in that directory, and not the gem installed.
Is there an easy way to do this for non-rails projects? There are a
few advancements on trunk which I would like to take advantage of.
Tips welcome ; ).
Scott Taylor
2006 Mar 21
7
Rails and JRuby
Has anyone attempted to run Rails inside of JRuby?
Is that even possible?
Aside from the performance implications, is it a bad idea?
I''m thinking that it might be useful in very rare cases where a
Ruby/Rails - equivalent of a Java solution may not exist yet.
Any thoughts?
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Jun 16
2
RailsConf - Ticket Available
Hello,
Unfortunately it looks like I won''t be able to attend RailsConf. Anyone
looking for a last minute ticket please email me at: adamjroth@gmail.com -
$400.
Thanks
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060616/07cc5e71/attachment.html
2007 Sep 05
4
False Positives and Autotest on New Folders
False Positives
I just discovered how easy it was to create a false positive when I, trying
my first RSpec test, did this:
ob.should eql?(''foo'')
instead of:
ob.should eql(''foo'')
or:
ob.should == ''foo''
As far as I can see, this is roughly equivalent to:
ob.should false
Neither eql?(''foo'') nor false causes the spec
2007 Jun 08
5
autotest bug?
Autotest is running continuously - even when the files mtimes aren''t
changing. I believe this only happens if using a failures file.
autotest -v gives me:
euclid% autotest -v
loading autotest/rails_rspec
/opt/local/bin/ruby -S script/spec -O spec/spec.opts spec/
controllers/log_entries_controller_spec.rb spec/views/login/
new_spec.rb spec/controllers/login_controller_spec.rb
2006 Nov 21
6
Spec Naming (was: Rspec Brown Bag)
Thanks for posting your specdoc, Brandon -- they''re a great example.
On 11/21/06, Brandon Keepers <bkeepers at gmail.com> wrote:
>
> A user purchasing items
> - should create an order
> - should add to the user''s orders
> - should create line items
> - should set line item amount to the item''s price
> - should set line item amount to 0 if
2007 Jul 26
0
rspec_on_rails magical incantations
I ran into something really puzzling today. I don''t know exactly why
it''s happening, but I thought I''d share my experiences.
I started a dummy app just to test an idea outside of the context of
my real work today. So, I quickly get things started:
* rails junk
* cd junk
* ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/
CURRENT/rspec
* ruby
2008 Jan 31
4
RSpec-1.1.3
RSpec-1.1.3 has been released.
If you''re using RSpec and autotest, you''ll have to upgrade to
RSpec-1.1.3 and ZenTest-3.9.0 at the same time.
== Version 1.1.3
Maintenance release.
* Tightened up exceptions list in autotest/rails_spec. Closes #264.
* Applied patch from Ryan Davis for ZenTest-3.9.0 compatibility
* Applied patch from Kero to add step_upcoming to story listeners.
2007 May 25
2
RSpec-1.0.3
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
2007 Oct 31
6
Autotest busted with Rspec/Rails trunk
Just upgraded to latest rails and rspec builds and my autotest doesnt
work
undefined method `before'' for Spec::Rails::DSL::RailsExample:Class
(NoMethodError)
Here''s the full trace:
http://pastie.caboo.se/112754
Any ideas?
--
Posted via http://www.ruby-forum.com/.
2007 Nov 30
4
Autotest''ing specs on non-rails app
I''m having trouble using autotest with rspec on a non-rails project.
my Rspec gem is version 1.0.8, ZenTest is 3.6.2
project structure
$ ls *
lib:
parser.rb
spec:
parser_spec.rb
autotest finds and runs the spec, but it won''t detect changes to lib/parser.rb
I know it''s something stupid, but...
help?
--
Rick DeNatale
My blog on Ruby
2008 Jan 13
10
.html.erb files and autotest
When I work with a .html.erb file, the autotest rspec on rails stuff doesn''t
understand the file to map it to the right test. I wanted to submit a patch
for this, but I''m unsure where the specs would be to update. I found the
necessary mapping in rspec_autotest.rb, but I can''t find any specs anywhere.
Help?
I just need to have
/app/views/coupon/index.html.erb to map to