I am having a weird problem with my acceptance test for login page. The login works fine when js in not enabled ie. the following case:
I\'m playing around with RoR for the first time and hit a weird error. I have the following test code for my navigation links:
I current test uniqueness validations in rspec using something like the following: @unique = Unique.create!(:uni开发者_如何学Goque_field => \'unique_value\')
Given the following two classes: class Location < ActiveRecord::Base belongs_to :holiday_schedule validates :name, :presence => true, :uniqueness => {:case_sensitive => false}
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)
I\'m using RSpec for my Rails 3 tests and trying to use Spork. I followed several tutorials and Spork seems to be running with no errors, but my tests still take the same amount of time to run (43 se
Anyone know how to get RSpec to call a singular route when testing controller? It can\'t find the route b/c it doesn\'t know to look for a singular controller so I need a way to specify it.
I have a simple view and a helper that defines the title. Everything works fine if I pull up the view in the browser, but the rspec tests fail. Here\'s what I have:
I\'m using Rails 3.1.0.rc4 and I\'m working on doing integration tests with capybara\'s new Steak-like DSL and Rspec (using Devise authentication)
I have configured a new rails 3 app, with devise and rspec. I have followed the devise wiki, and put