Displaying 20 results from an estimated 1000 matches similar to: "still seeing strange behaviour with spec_server"
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 May 21
4
slow execution times using spec_server
hi all
I''m seeing strange behaviour when running specs using spec_server.
They take longer to execute, and it looks like none of examples are
being run. here''s the output for a simple spec file using just the
spec command:
----------
foo at holly:~/rails/allison$ time ruby/script spec spec/models/listing_spec.rb
......
Finished in 0.060469 seconds
6 examples, 0 failures <
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 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 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 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
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
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
2008 Jan 31
1
DRb does not activate using options file
Hello List,
For a small project I''ve been using ''ruby script/spec -X spec'' to
execute my specs.
Now that I added ZenTest on it, found that the test takes longer to
run due the complete load of test environment.
Since autotest uses ''script/spec -O spec/spec.opts'' as the command, I
decided to add --drb to spec.opts
Using --drb or -X, spec_server is
2008 Aug 24
0
Running specs within a spec server
Hi guys. I''m unable to run my specs through a spec server. I''ve spent
several hours searching and playing around with this problem, and I
simply can''t find a solution. So if anyone has any suggestions, I''m
all ears.
Does script/server need to be running in conjunction with the spec
server?
I have "--drb" specified in spec/spec.opts .
I start
2012 May 24
0
Ruby on Rails Tutorial Chapter 6 RSpec tests failing
Hello all:
I''m a RoR newbie who is currently following the Ruby on Rails
Tutorial: Learning by Example book (http://ruby.railstutorial.org/
chapters/modeling-users#sec:adding_a_secure_password). The following
Chapter 6 RSpec tests are failing:
Failures:
1) User [31mFailure/Error:[0m [31mit { should be_valid }[0m
[31mexpected valid? to return true, got false[0m [36m # ./spec/models/
2009 Mar 15
0
rspec-rails 1.2.0 Released
rspec-rails version 1.2.0 has been released!
* <http://rspec.info/>
* <http://wiki.github.com/dchelimsky/rspec>
* <http://wiki.github.com/dchelimsky/rspec/rails>
* <http://wiki.github.com/dchelimsky/rspec/upgrades>
Behaviour Driven Development for Ruby on Rails.
Changes:
### Version 1.2.0
IMPORTANT INFORMATION: Due to changes in Rails-2.3, there are some changes
in
2008 Sep 13
4
rake does recognize "rake examples_with_rcov"
Hi,
Q1 - Know why rake doesn''t recognize "rake examples_with_rcov" per
http://rspec.info/documentation/tools/rcov.html ?
Q2 - Also when I run "rake spec:rcov" it seems to give me the same as
if I just run "autotest" or "rake spec". I was expecting a heap of
pointers to code I haven''t tested?
2009 Jun 13
2
removing Mocha; 'spec spec' fails but the specific model file passes
I happened to mix ryan bates'' authentication scaffold with
rspec_scaffold on a demo project.
and ran into the problem of mixing mock frameworks...ryan uses mocha.
So, as a learning experience, I choose to redo ryan''s tests without
mocha but ran into a strange problem with tests of the User model.
With debugging you can see....
If you run just the user_spec.rb file, everything
2007 Jan 22
1
Observed models cause failures with DRBSpec ?
Hi all !
I don''t believe I am the only one using model observers, right ?
Well, here''s a nice one:
$ drbspec spec
.
Finished in 0.125322 seconds
1 specification, 0 failures
$ drbspec spec
F
1)
''A user with an inactive and an active project should be able to
return active projects only'' FAILED
[] should == [#<Spec::Mocks::Mock:0xb75590bc
2007 Aug 12
3
Scope and specing models
Hello all, I''m currently having an issue with some specs, specifically scope
issues (probably more of a scope issue than a spec issue at this point)...
Here''s the error:
ActiveRecord::AssociationTypeMismatch in ''A new User should know what role
it has''
Role expected, got NilClass
D:/ruby/projects/restful_authentication_test/config/../app/models/role.rb:5:in
2011 Apr 04
1
Dovecot IMAP repeatedly disconnects
Hi,
I'm running dovecot-1.0.7-7.el5 on a CentOS 5.5x64 server, accessed
through Thunderbird clients. Thunderbird is reporting constant
disconnections from the server; the maillog shows constant repeats of
Apr 4 16:39:21 holly dovecot: imap-login: Login: user=<?user?>,
method=PLAIN, rip=::ffff:172.31.255.193, lip=::ffff:172.31.255.1
Apr 4 16:39:21 holly dovecot: IMAP(?user?): mbox
2010 Aug 11
6
rspec2 not working with shoulda
I am using rails edge. I am using gem "rspec-rails", "= 2.0.0.beta.
19" .
I have following code at spec/models/user_spec.rb
require ''spec_helper''
describe User do
it { should validate_presence_of(:email) }
it { should validate_presence_of(:name) }
end
Here is my gemfile
group :development, :test do
gem ''factory_girl_rails'',
2011 Feb 07
0
Error loading rubygems
Hi,
During an operation (rspec related) that required loading rubygems
(from config/boot.rb file) I got the following error message:
~/config/boot.rb:1:in `require'': no such file to load -- rubygems
(LoadError)
~/config/boot.rb:1
from ~/config/application.rb:1:in `require''
from ~/config/application.rb:1
from ~/config/environment.rb:2:in `require''
from
2008 Jun 04
8
Not running correct specs under autotest:
I know this isn''t autotest-users but I''m not sure where else to bring this up:
[["app/controllers/contents_controller.rb", Wed Jun 04 14:11:03 +0100 2008]]
[["app/controllers/contents_controller.rb", Wed Jun 04 14:11:03 +0100 2008]]
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S
script/spec -O spec/spec.opts spec/models/user_spec.rb