Displaying 6 results from an estimated 6 matches for "landro".
Did you mean:
sandro
2007 Dec 03
18
Need help mocking this out
Let''s say you''re using the restful_authentication plugin.
You have a model called articles. On the index action of the
articlescontroller you simply want to spec out that it''ll scope the results
to the ownership of the current_user.
It should NOT include any articles other than the articles that user owns.
How would you properly spec this out?
Thanks for the help!
2007 Nov 25
15
Possible Problem with RSpec and
Sorry to be such a pest but I am trying to learn Ruby, Rails and RSpec all
at one go and it is a bit overwhelming. I have previously completed the
depot tutorial in the Agile Web Dev with rails book and now I am trying do
do it again using RSpec.
What I would like to know now is why I am getting a rake failure error at
the end of every spec:models run. Is this the expected behaviour when a
test
2007 Nov 22
1
Issues related to jruby 1.0.2/edge rails and rspec head
Hi,
We just spent half an afternoon figuring out why "jruby -S rake spec" didn''t
generate any output at all (no warnings) on an edge rails app. We were
seeing different behaviour on different boxes, and after a while figured out
that it was related to a missing diff-lcs gem on one box.
HTH,
Stefan
--
Bekk Open Source
http://boss.bekk.no
-------------- next part
2007 Nov 28
1
Replacing the database in Active Record with RPC-based interface
Hi there,
We''re about to move our persistent store from a MySQL database to an
RPC-based data store.
However, we really like programming against the AR-api, and would like
to keep as much as possible from, so that we can keep stuff like
callbacks, validations, relations etc.
How would you do it?
Does it make sense to replace the mysql-adapter with and RPC-based
adapter, translating
2008 Jan 31
6
loading fixtures?
How do you load fixtures from specs as you would test?
eg. rake db:fixtures:load RAILS_ENV=development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080131/38c3b0ab/attachment.html
2008 Jan 08
47
specs on private methods
How does a person test private methods?
Is there a way to declare them as private, but retain any tests that
were written during the initial development?
Thanks.
--
Posted via http://www.ruby-forum.com/.