I\'m l开发者_JAVA技巧earning RSpec 2 with Rails 3. In order to set the contents of thetag in the layout for each page, I have a helper that can be used to set the title and then return it:
I\'m trying to build an rspec test that sends JSON (or XML) via POST. However, I can\'t seem to actually get it working:
I want to spec a Sinatra server that receives HTTP requests, stores things in MongoDB, and responds with JSON. How would I spec both the MongoDB 开发者_如何学编程entries and the responses?
I am attempting to get RCov to work 开发者_StackOverflow社区with my RSpec and Shoulda test for a rails 3 app.It seems to work fine with my RSpec after using the Rake task below but all of the shoulda
I am using infinity_test gem with rspec in a rails project. How can I get the out开发者_Go百科put in color? I tried setting in terminal
Many programmers use devise as their authentication solution and I 开发者_StackOverflow社区would like to get their advice:
I\'m new to testing and rails but i\'m trying to get my TDD process down properly. I was wondering if you use any 开发者_开发问答sort of paradigm for testing has_many :through relationships? (or jus
I find the integration with RSpec, Growl and rails particularly useful. However, it takes about two to three seconds before a change (sav开发者_Python百科e file) is picked up by autotest.
I have a nested controller that works fine, and I\'d like to setup rspec to also test a nested controlled, but it doesn\'t test the controller unless I specify it.
Trying to test a controller in Rspec. (Rails 2.3.8, Ruby 1.8.7, Rspec 1.3.1, Rspec-Rails 1.3.3) I\'m trying to post a create but I get this error message: