rspec2
Rspec + Capybara : undefined last_response
I\'m setting up my test environment with Rspec + Capybara, but I get this undefined last_response. I was searching throught the web and SO. I found couple of things about version, use git repo instead[详细]
2023-03-26 06:31 分类:问答Using Rspec 2 to test a command line application's UI layer
I\'m writing a command-line application in Ruby. I\'m rather familiar with Rspec 2, as it\'s used in some Rails applications I\'m working on. I\'m writing a command-line application and I\'m attemptin[详细]
2023-03-26 02:48 分类:问答Capybara does not find the text that is actually there!
In my actual project I use the following gems for testing: capybara from git://github.com/jnicklas/capybara.git in revision 6641fddcfc337a3ddaa84ac59272e884090332c3[详细]
2023-03-23 13:39 分类:问答Testing entire Rspec suite fails
I have an odd situation whereby if I run an individual rspec model spec file all examples are green, if I test my entire spec/models folder all my examples are green. If I test the controllers they al[详细]
2023-03-21 13:58 分类:问答Can't access image_tag from helper module
I would like to test the following helper module function: module UploadsHelper def custom_img_tag(upload, width, height, id)[详细]
2023-03-21 10:58 分类:问答How do I mock a devise objects association return values?
I have an Employee model, Client model, and an Office model. Devise is controlling the authentication logic on the Employee. I have multiple controllers which are subclassing a base controller which s[详细]
2023-03-20 17:21 分类:问答Rspec2 Missing template Error
Upgraded form Rails 2 to 3. And RSpec 1 to 2. It looks like capybara/webrat is trying to find the template when I only want it to find the action. What is a possible workaround?[详细]
2023-03-20 14:50 分类:问答How to ignore rescue_from in ApplicationController in rspec tests?
By default, Cucumber ignores rescue_from in your ApplicationController and reports any exceptions directly.This is accomplished by the following line in the Cucumber env.rb file[详细]
2023-03-20 01:09 分类:问答no such file to load -- action_controller/integration - NoMethodError for Rails 3 and Webrat
I\'m getting the following failure during RSpec tests.. no such file to load -- action_controller/integration[详细]
2023-03-19 23:45 分类:问答How to test - with rspec - what template is used when creating an email? (Rails 3.0.7)
I\'m trying to write some tests for 开发者_如何学Cemails generated with a mailer class using rspec and email_spec (Ruby on Rails 3.0.7)[详细]
2023-03-19 00:51 分类:问答
加载中,请稍侯......