Displaying 20 results from an estimated 6000 matches similar to: "Creation of spec.opts spec_helper etc"
2007 Nov 21
22
Getting Class in Shared Behaviours
Hi,
I want to be able to get at the described class in my shared behaviour. I''m
sure an example will say it better than my words
describe "my shared", :shared => true do
it "should tell me what the class is its describing" do
how_do_i_get_the_user_class_here
end
end
describe User do
it_should_behave_like "my shared"
#...
end
So in my
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 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 <
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 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 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)
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 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
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 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
2007 Nov 19
5
Stories and Pending Actions
I can''t get my plain text stories to show pending actions like the
example addition plain text story. Any tips? (See below)
http://pastie.caboo.se/119627
Nathan Sutton
fowlduck at gmail.com
rspec edge revision 2910
rspec_on_rails edge revision 2909
rails edge revision 8167
2007 Dec 03
5
spec for model_id should eql
Hello,
I''m confused why the spec described below is failing. Other simple
comparison specs are passing fine for the same model. The code is working
accordingly when I test it through the console, I''m just having difficulty
getting this spec to work. Any pointers would be appreciated.
Failure message:
''Address fetch and geocode should extract department and write to
2007 Dec 11
5
RSpec TMbundle
I tried checking it out today using instructions here:
http://rspec.rubyforge.org/tools/extensions/editors/textmate.html
I get a ''svn: Connection closed unexpectedly''. Did it move or is it
down?
Nathan Sutton
fowlduck at gmail.com
rspec edge revision 3052
rspec_on_rails edge revision 3049
rails edge revision 8269
2008 Jan 10
21
Shoulda
Hey, we''re currently using shoulda (http://dev.thoughtbot.com/
shoulda/) on a project and I saw some things that would be really nice
to see in rspec, namely the should_ methods, and especially the
should_be_restful method. Do these go against the rspec goals at
all? Or could an ambitious programmer go to town implementing these
for rspec_on_rails?
Nathan Sutton
fowlduck at
2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
Hi all,
I feel like I''m missing something really easy and I''m just not seeing
it.
I''m using the restful_authentication plugin and have a User model. Uesr
has_many :things and Thing belongs_to :user.
That''s it.
I did a "script/generate rspec_scaffold thing" to generate all the
necessary bits. The "rake db:migrate" to create the db.
At
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 Nov 15
3
How to Run Rails Stories
I have non non-plain-text story without any steps_for, can it be run?
If so, how?
Thanks,
Nate
2007 Jul 31
11
helper spec not finding rails core helpers
Hi,
My helper specs were going ok until I added a call to a rails
DateHelper method in one of my helpers
http://api.rubyonrails.com/classes/ActionView/Helpers/
DateHelper.html#M000574
The helper runs fine from my view templates, just dies in the spec test.
I boiled my question down to a simple (not too useful) example. I''m
not sure what I''m missing.
#
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 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