I have an application helper which determines the css classes (selected or unselected) and link addresses for the navbar at the top of my application helper.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
I want Selenium IDE to fail a test if the time to access a page is more 开发者_StackOverflow社区than 60 seconds and log the time it took to access the page.
I\'m new to testing, and I\'m having some difficulties trying to run a functional test. I\'ve a messages_controller, and a user_controller here.
We are trying to use Fitnesse for our Functional test. Should i be mocking dependencies or should it be testing against the database?
I know how to run functional/integration tests in Rails, this question is about best practices. Let\'s say authorization is performed using four distinct user roles:
I have the following filter defined: # application_controller.rb class ApplicationController < ActionController::Base
Is it okay (conceptually) to run for loops in test methods? I\'d like to test a range of parameter values into a controller, to determine if the different inputs return the correct values.
Does anyone know how to make assert_select not output all those nasty html warnings during a rake test? You know, like this stuff:
I have a RESTful resource in my Rails app called \"Photo\". I\'m using Paperclip to serve different \"styles\" of my photos (for thumbnails and the like), and I\'m using a custom route to RESTfully ac