I\'ve got a situation where I need to validate some regular expressions. So, during my application run, I may want to test that a particular regex:
I am having problems with writing a test in rspec for will_paginate. The problem is that I have a model with an Owner that can have many pets. This leads to a factories.rb file that looks like this:
I\'m writing a request spec and would like to test for the presence of the string \"Reports » Aging Reports\". I get an error (invalid multibytechar) if I put in the character in my matcher expressio
So this is kind of baffling me as I can\'t quite figure out why it\'s happening. This only happens on my laptop (Ubuntu 11.04), and not elsewhere.I just seem to have something weird with the setup on
I have a simple controller test, containing a.o. the following code: context \"POST :create\" do before (:each) do
I am writing some specs and the following is failing but the page /menus/1 is loading fine in a browser. This is a port of a php app and is first time I\'ve used RSpec. Any thoughts as to why it might
I have a class User as follows class User < ActiveRecord::Base has_one :session has_and_belongs_to_many :posts
I want to test an interaction where the user clicks a li开发者_如何学编程nk and a jquery dialog (http://jqueryui.com/demos/dialog/) pops up.
I have the following in my Rails 3 controllers/application.rb (which I\'m trying to write a spec for):
I have --drb set in my .rspec file, which means spork runs by default. If, however, I want to run through tests once without spork, I either have to modify my 开发者_如何学Python.rspec, or stop spork