Displaying 20 results from an estimated 1000 matches similar to: "slow execution times using spec_server"
2007 Nov 01
3
no speed up with spec_server
Hey guys,
I''m running spec_server and using --drb with my specs in Rails, and
I''m seeing virtually no speed up. I''m using rspec/rspec_on_rails
trunk. Is there something I''m doing wrong?
TIA,
Jeremy
--
Jeremy Stephens Computer Systems Analyst I School of Medicine
Department of Biostatistics Vanderbilt University
2007 May 15
5
spec_server
hi all
I''m trying to use spec_server to run my specs in rails, but the specs
don''t seem to be running any faster, and it looks like they''re being
run twice when I use the --drb option ..? The app I''m testing is just
a basic rails app with 2 empty models and a hello world controller.
The specs are just the default ones created by the generators.
I was
2007 Oct 26
4
spec_server doesn''t update ''required'' files
I have some specs that ''require'' other files. When running spec_server, if
these required files are changed, it''s not picked up when the specs are
run. I have to restart spec_server to get the changes recognized. Is there
an option or some such to have spec_server reload required files as well
when a spec is run?
Thanks,
Steve
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
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 Dec 12
3
Problem running examples with spec_server
Hello,
Running RSpec without DRB works fine.
However, "spec -X" runs without error but provides no output at all, even
though the DRB spec_server seems to be fine.
Has anyone got some suggestions as to why and how to fix?
RSpec: 1-1-0RC1 build time 20071212145122
RSpec on Rails: Build time 20071212145122
Ruby: 1.8.6
Rails: 2-0-1
Win XP SP 2
Thanks very much,
Dave
-------------- next
2007 Oct 22
1
installing rspec/rspec_on_rails as system wide generator (or similar)
Hi all,
What would be the best/easiest way of installing rspec as a system
wide generator so I''m not having to download it or ./script/plugin
install it every time?
Thanks,
Alastair
-----
Alastair Moore
Freelance web design, development and consultancy
t. 07983 983945
e. alastair at kozmo.co.uk
w. http://www.kozmo.co.uk
skype. alastair_kozmo
2007 Nov 23
3
Creation of spec.opts spec_helper etc
When do these files, along with lib/spec and lib/spec_server get
created?
I tried to create a quick test project and can''t remember how they were
created in a previous project.
Thanks
--
Posted via http://www.ruby-forum.com/.
2007 Apr 09
10
changes in 0.8 and greater - should_
Has the should_... syntax changed? I''m getting errors when running
the following:
should_render(:index)
should_be_valid
should_not_be_valid
should_respond_to
should_be
should_render
I thought the syntax changed to something like the following:
obj.should render(:index)
but this doesn''t seem to work.
Scott
2007 May 25
0
still seeing strange behaviour with spec_server
hi all
a few days ago i reported spec_server didn''t appear to be running
specs and the command itself was running slowly. I''ve since tried it
on a new system with a clean install of ubuntu 7.04, rails 1.2.3 and
rspec 1.0.2 and I''m seeing the same behavior.
*** without spec_server ***
x at holly:~/rails/test$ time ruby script/spec spec/models/user_spec.rb
.
Finished in
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 29
12
testing instance variables that are set inside views
Hi all,
In my view specs (for Rails), how can I get at instance variables that
are set within my view? For example, if my view looks like this:
<% @header = "My Header" -%>
<div>some content</div>
How can I get to @header from within my view spec? I''ve tried @header
and assigns[:header] to no avail.
TIA,
Jeremy
--
Jeremy Stephens Computer Systems
2008 Mar 13
6
What is SpecServer?
I have looked through the docs, looked at the code, even gave a
cursory (2 page) glance at google, and it is not clear to me what
SpecServer is or what it is for.
Is it meant to speed up the execution of specs in a rails environment
by doing some magic on the database?
Or I am thinking it keeps a copy of Rails running to avoid the rails
reload delay...
Is there any documentation on this so I
2007 Jun 21
3
Sqlite3, in-memory db and rspec_server
Hi everyone.
I can''t get the above(subject line) combination to work. If I use a
standard sqlite3 file db for the test db, and spec_server all the
specs on my models pass. If I use an in-memory db for the test db,
script/spec w/o spec_server, they all pass. But if I use in-memory and
spec_server I get the following error:
1)
ActiveRecord::StatementInvalid in ''User should be
2007 Aug 18
6
RSpec: "--color" not working in spec.opts when combined with "--drb"
Windows XP SP 2
ruby 1.8.5
gems:
rails 1.2.3
rake 0.7.3
win32console 1.0.8
plugins:
rspec 1.0.8
rspec_rails 1.0.8
spec.opts:
--colour
--format
progress
--loadby
mtime
--reverse
--drb
When I run "rake spec" or "ruby script/spec spec --color" this is the
output:
D:\dev\project>rake spec
(in D:/dev/project)
2009 Oct 06
3
rspec-rails 1.2.9 Released
rspec-rails version 1.2.9 has been released!
* <http://rspec.info>
* <http://rubyforge.org/projects/rspec>
* <http://github.com/dchelimsky/rspec-rails>
* <http://wiki.github.com/dchelimsky/rspec/rails>
* <rspec-devel at rubyforge.org>
Behaviour Driven Development for Ruby on Rails.
Changes:
### Version 1.2.9 / 2009-10-05
* enhancements
* added route_to and
2007 Apr 04
11
ANN: RSpec 0.9.0 beta-1 available for download.
We''d like to get some feedback on RSpec 0.9 before we start pushing
out releases via Rubyforge''s gem server and update the website. We
have therefore made the first beta of 0.9 available - both prepackaged
and tagged in subversion (see below).
RSpec 0.9 introduces a new API for expectations, which essentially
means that your underscores go away (there has been other discussions
2007 May 02
13
RSpec 0.8.2 pain, missing spec/rails?
Hi. I''m upgrading a project from an 0.8.0 pre-release gem to 0.8.2.
I''ve installed the 0.8.2 gem, and the rspec_on_rails 0.8.2 plugin:
ruby script/plugin install
svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec
When I try to run my specs though, I get the below error. It''s as if the
spec_helper cannot find "spec/rails". I''ve noticed that
2007 May 23
3
log file
hi,
When running rails spec tests is there a log file generated? i''m
looking for generated sql to help me debug like in development.log
or is there a way to run the test against a webrick server so i can
see logs?
(i''m not running with spec_server at the moment, it doesnt seem to
work well with autotest)
thanks
linoj
2007 Nov 13
2
Spec slowdown
Is there something currently going on on the rspec trunk that causes
a massive slowdown when running rake spec and autotest (without
spec_server)? I updated to the latest trunk yesterday and the time
needed to run the specs of my app jumped from ~20 seconds to more
than a minute. The weird thing is that if I run the rake spec tasks
separately (controllers, models, views, helpers), they