search for: books_controller_spec

Displaying 3 results from an estimated 3 matches for "books_controller_spec".

2006 Dec 24
6
What do you think of this controller spec?
...or when the user isn''t logged in, and one when the user is logged in but requests someone else''s book. do_request automatically calls do_get/post/put/delete depending on what''s implemented. Here''s all the code: books_controller.rb: http://pastie.caboo.se/29469 books_controller_spec.rb: http://pastie.caboo.se/29470 spec_helper.rb: http://pastie.caboo.se/29471 The specs just feel somewhat unwieldy to me...maybe it''s because the controller code is very simple and elegant, and the spec looks big and bloated in comparison. Also, it feels like it''s taking me a l...
2007 Apr 09
7
RCov results seem to include the spec files
...39;s being run as a result of the rake task: /usr/local/bin/ruby -I"/usr/local/lib/ruby/gems/1.8/gems/rspec-0.8.2/lib" -S rcov --exclude lib\/spec,bin\/spec,config\/boot.rb -o "coverage" "/usr/local/lib/ruby/gems/1.8/gems/rspec-0.8.2/bin/spec" -- "spec/controllers/books_controller_spec.rb" "spec/controllers/feedback_controller_spec.rb" "spec/controllers/stack_controller_spec.rb" "spec/controllers/users_controller_spec.rb" "spec/helpers/books_helper_spec.rb" "spec/models/book_spec.rb" "spec/models/user_spec.rb" rspe...
2007 Jul 14
8
Specing Layouts
Hi, I''ve just started to try and spec my application.html.erb layout as one of the view specs but it totally barfs. I''m guessing that it''s due to the yield statements in the layout. Any clues as to how to proceed? Cheers Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: