Displaying 20 results from an estimated 22 matches for "rails_rspec".
2007 Sep 05
4
False Positives and Autotest on New Folders
...') nor false causes the spec to fail; this is worrisome, as
I can imagine accidentally including that ? again; and I''d hate it to mask a
test failure.
Autotest
Out of curiosity, does anyone know how to get autotest to pick up new
folders under spec/? Seems like I might have to modify rails_rspec.rb in
lib/autotest. We were considering separating our acceptance tests from the
rest.
- Geoffrey
--
Geoffrey Wiseman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070905/dd3f3b88/attachment.html
2008 Jan 31
11
ZenTest-3.9.0 incompatible with RSpec-1.1.2
Hey all,
Just a heads up that the ZenTest-3.9.0 release is not compatible with
RSpec-1.1.2. I thought I had a release ready to go, but differences
between a preview release of ZenTest that I received and the actual
release seem to have broken compatibility.
We''ll get this resolved soon, but in the mean time please hold off on
upgrading to ZenTest-3.9.0 if you''re using RSpec.
2007 May 24
15
Specs for code stored in rails_app/lib/
Where should the specs go for code in the "lib" directory of a Rails
app?
I made a folder, "spec/lib/", for storing such specs, and RSpec
automatically picks them up when run using "rake spec".
Before I go ahead and patch rspec_on_rails/lib/autotest/
rails_rspec.rb so that autotest can monitor these specs I''d like to
ask whether this is the "standard" location for such specs or not.
Cheers,
Wincent
2008 Jun 04
8
Why has the --color gone from my life?
Hi all,
Running on OSX 10.5.3, Latest Rspec trunk, Rspec rails trunk, latest
autotest gem and rails 2.1
I''ve lost my colour output in autotest.
rake spec gives colour output, but autotest gives me black and white.
It was working a little bit before, I think I upgraded to the latest
versions of everything to get all the textmate snippets talking and being
friendly to one another again
2007 Aug 08
3
rspec with autotest on a windows machine
...,
I''m new to rSpec but after reading a couple of tutorials I''ve become
enamored. Anyway, I am at minute 42 of the rSpec basics screencast (
peepcode.com) and I''m having the following error running autotest w/rSpec:
D:\ruby\projects\forecaster>autotest
loading autotest/rails_rspec
c:\ruby\bin\ruby -rrubygems -e "require ''redgreen''" -S script/spec -O
spec/spec.opts spec/models/weather_spec.rb
spec/views/weathers/show.rhtml_spec.rb
spec/controllers/weathers_controller_spec.rb
spec/views/weathers/new.rhtml_spec.rb spec/views/weathers/edit.rhtml_spe...
2008 Jan 21
0
no method error
...roller:0x447ddcc>
> c:/rails/rails_apps/tracker/spec/views/chapters/new.html.erb_spec.rb:15
> script/spec:4:
Can we see some code? What do the spec and the view look like?
> Also, no word on my autotest question?
>
> c:\rails\rails_apps\tracker>autotest
> loading autotest/rails_rspec
> from
> C:\Rails\rails_apps\tracker\vendor\plugins\rspec_on_rails\lib\autotest\rails_rspec.rb
> C:\Rails\ruby\bin\ruby -rrubygems -e "require ''redgreen''" -S script/spec
> -O spec/spec.opts spec/controllers/chapters_routing_spec.rb
> invalid option: -O...
2008 Feb 01
1
Autotest just sits there
I have had this problem for a while.
autotest has never worked properly for me. I have tried different
versions of rspec with different versions of ZenTest. I have tried it
with .autotest files and without.
When I run autotest from my rails app root, it says:
loading autotest/rails_rspec
and then it just sits there.
If I look at the output from autotest -v, it is traversing the tree and
it knows how to handle my source and specs, but it never seems to do
anything.
Thoughts?
--
Posted via http://www.ruby-forum.com/.
2007 Jun 23
6
Autotest bug with rerunning passing tests?
Am I correct in remembering that autotest (with Test::Unit) would
rerun all the tests if a subset of the tests passed? If so,
shouldn''t this behaviour also be present in rspec''s autotest library?
Scott
2008 Feb 06
1
RSpec 1.1.3 + ZenTest 3.9.1 + Rails 1.2.6 do NOT ignore folders ^vendor/*
...me_type.rb
Dunno! public/stylesheets/themes/default/close.gif
Dunno! db/migrate/021_create_community_bookmarks.rb
Dunno! vendor/plugins/cache_fu/test/local_cache_test.rb
Dunno! public/images/icons/flags/bv.gif
in the output. Am I the only one?
After reading the code in rspec_on_rails/lib/autotest/rails_rspec.rb
Autotest.add_hook :initialize do |at|
%w{^config/ ^coverage/ ^db/ ^doc/ ^log/ ^public/ ^script
^vendor/rails ^vendor/plugins previous_failures.txt}.each do
|exception|
at.add_exception(exception)
end
I think the noise is not normal. Maybe I should write some specs to
verify this code i...
2009 Mar 22
1
Problem running autotest in rails 2.3
People,
I''m trying to run autotest on rails 2.3
I get a NoMethodError.
Here is what I see:
Sat Mar 21 20:47 /b/tmp/myfc23 maco$
Sat Mar 21 20:47 /b/tmp/myfc23 maco$ autotest
loading autotest/rails_rspec
./vendor/plugins/rspec/lib/autotest/rspec.rb:24:in `initialize'': undefined
method `failed_results_re='' for #<Autotest::RailsRspec:0x1205b88>
(NoMethodError)
from
/pt/r1/lib/ruby/gems/1.8/gems/ZenTest-3.8.0/lib/autotest.rb:126:in `new''
from
/pt/r1/lib...
2008 Oct 10
5
Solution for autospec not working
Hello,
I have noticed that, since version 1.1.4, autotest/autospec does not run any
of my specs. After getting a hint from
http://b.logi.cx/2008/10/9/non-auto-spec, I dove a bit deeper into the code
and found that spec is no longer being run by ruby.
I monkey-patched Autotest::Rspec in my .autotest file so that spec is again
executed (using code taken from version 1.1.4). autospec is now
2008 Jun 03
9
Build rspec-rails as a gem?
I can''t figure out how to build rspec-rails as a gem when just cloned
from github... there isn''t any .gemspec file or rake task that does
this. Any help?
--
Posted via http://www.ruby-forum.com/.
2008 Aug 15
7
Autotest and subclasses / namespaces
I am writing a controller admin/cities_controller.rb
it inherits from AdminController, so it''s defined like
class Admin::CitiesController > AdminController
Whenever I save the controller file, autotest freaks out:
uninitialized constant Admin::AdminController (NameError)
I''m pretty used to just hitting CTRL-C to get autotest to re-load all
the files, or flicking to
2007 Nov 01
3
autotest debugger?
Hi,
I keep facing problems with autotest, and I don''t know what''s happening
in the background, is there anyway to know what''s happening while
testing?
Example:
@user = User.new
@user.email = "testcom"
@user.errors.on(:email).should_not be_empty
...throws error failure
- You have a nil object when you didn''t expect it!
- You might have expected an
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'' for
"organizations":String (NoMethodError)
from /usr/local/lib/ruby/gems/1.8/gems/ZenTest-3.6.0/lib/
autotest.rb:395:in `call''...
2007 Sep 30
4
autotest stop working, 1.0.9?
My autotest runs but when I make changes to a spec it doesn''t reload.
I checked another application I was building that had 1.0.9 but it was
reloading fine.
How would I debug a problem such as autotest not reloading?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070930/6be7160d/attachment.html
2007 Sep 28
4
RSpec + EdgeRails on Windows
...te.rb:1
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`gem_o
riginal_require''
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`requi
re''
from script/generate:3
When running autotest (hangs afterward):
loading autotest/rails_rspec
/usr/bin/ruby -S script/spec -O spec/spec.opts spec/models/user_spec.rb
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_requi
re'': no such file to load -- active_resource (MissingSourceFile)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:...
2007 Oct 08
17
(no subject)
Just ran svn up this morning, and got this (after running ./script/
generate rspec)
escher: ./script/spec spec/models/item_spec.rb
Finished in 8.0e-06 seconds
0 examples, 0 failures
./script/spec:4:in `run'': wrong number of arguments (3 for 1)
(ArgumentError)
from ./script/spec:4
Using rails 1.2.3, rspec trunk, on Mac OS X.4.9.
Any ideas, or is this a bug in
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 spec/models/
user_spec.rb spec/views/log_entries/edit_html.erb_spec.rb spec/views/
log_entries/index_html.erb_spec.rb sp...
2009 Oct 08
0
autospec cannont find gems
...0.1.4)
win32-sound (0.4.2, 0.4.1)
win32console (1.2.0)
windows-api (0.3.1, 0.2.0)
windows-pr (1.0.8, 0.7.2)
ZenTest (4.1.4)
When attempting to run autospec, I get the follwing errors about not
being able to find installed gems
C:\INSTAN~3.0-W\rails_apps\katai>autospec -rails
loading autotest/rails_rspec
C:\INSTAN~3.0-W\ruby\bin\ruby
C:/INSTAN~3.0-W/ruby/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin/spec
--autospec spec/models/user_spec.rb -O spec/spec.opts
no such file to load -- rspec
C:/INSTAN~3.0-W/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require''
C:/INSTAN~3...