How should I spec this nested build: #projects_controller.rb def new @account.projects.build end So far I have something like this:
I have a rake task for a series of rspecs as follows... require \'spec/rake/spectask\' require \'joliscrapper\'
I\'m having trouble creating specs for my views and requests. Some of my controllers use named_scope, like this:
I\'m reading through the (still beta) rspec book by the prag progs as I\'m interested in behavioral testing on objects.From what I\'ve gleaned so far (caveat: after only reading for 30 min), the basic
Through rspec (I\'m using rspec-1.3.0, rspec-rails-1.3.2 gems) generator (ruby script/generate rspec_model suggestion section_id:integer user_id:integer subject:string content:text state:string type:s
I have a Rails 3 app that uses RSpec2 as my testing framework, and I\'m able to use autotest to watch my model and spec directories for changes and re-run my spec suite when files change.
I am new to the unit testing scene; I have only been using unit tests for about 2 months now. When I unit test in Ruby I currently follow the TDD style and use Test::Unit::TestCase. I have also read a
I\'d like to test that a method is called recursively with a specific argument. My app开发者_JAVA技巧roach:
Using tspec 2 I want t开发者_C百科o create a rake task on the fly to be run, we used to do the following in RSpec 1:
I\'ve been trying to stub open, the open-uri version, and I\'m not succeeding. I\'ve tried doing the following but the request keeps going through: