I\'m trying to do this: describe \"should fail on create if the name is shorter than 5 characters\" do
I don\'t understand something fairly basic with testing association (has_many / belongs_to ) with rspec.
I\'m getting the following error: #<NoMethodError: undefined method `find_it\' for #<struct xJob xxxx_id=527>>
I searched around and couldn\'t find how t开发者_如何学JAVAo test a file download box using capybara/cucumber?
I\'m new to factory girl. What I\'m trying to do is create 2 users, which belong to a group, joined by the permission model. Here\'s what I have. When I run this one rspec, it creates more than 2 user
I\'m learning testing right now, but am having some issues with Webrat not finding form fields using fill_in even though I\'ve verified it is on the correct page.Does Webrat work off of field names or
I feel that code will speak more than words in this case, so place to The code : config/routes.rb namespace :embed do
I have a custom redirection in my routes.rb which works fine at the ui: match \':hash\' => redirect { |params| begin url = Shar开发者_如何学Going.find_by_short_url(params[:hash]); \"/#{url.shareab
First, let me say that login works correctly. The user is logged in for sure. I\'m also certain that the post is happening properly (checked the message开发者_开发问答s and flushes, so i\'m certain).
I\'m porting my app from a custom authentication mechanism to authlogic and I\'m having trouble figuring out how to test that a new user is logged in after it is created. My old test was the following