I\'m building tests for a user sign-up page.I\'m about to add Recaptcha to the page, and I don\'t know how to 开发者_运维百科account for it in rspec.Specifically, I want my integration test to verify
I often want to do context \"empty stack\" do SOME_CONSTANT = \"value\" it \"should be empty\" do # use SOME_CONSTANT
I\'m using Rails 3, machinist 2, cucumber开发者_JAVA百科 and rspec all together and have two blueprints.rb files. One in the spec directory and one in the features/support directory.
I have written a Rails 3.1 engine with the namespace Posts. Hence, my controllers are found in app/controllers/posts/, my models in app/models/posts, etc. I can test the models just fine. The spec for
I would like to test if a controller action is actually called without a redirect happening in some before_filter. Since the controller action itself may do a redirect, I want to stub the action to ra
Going back to an example I had previously asked about, I\'ll try and make this question as simple as possible.
Sa开发者_StackOverflow社区y my view pages have route helpers like: root_url user_edit_path Now if I change things in routes.rb that effect these helpers, I want to make sure my unit tests capture
I might be going at this the wrong way. I\'m doing the spec first, BDD/TDD and hit a bump. I have this application_controller_spec.rb
It seems there are two gems that provide RSpec matchers to use with Mongoid. Which is a better choice and why?
I have an rspec test using webdriver that clicks on a button... after clicking the button, the page never fully loads (which is expected and correct behaviour). After clicking the button, I want to wa