I want to test that my controller action is rendering a partial. I\'ve poked around and I can\'t seem to find anything that works.
I\'m trying to figure out how to get RubyMine\'s console to send messages to growl. Specifically, since I run Rspec & Spork through RubyMine, I\'d like to get Growl notifications of how many tests
Here\'s what I have: An application helper method that calls a controller helper method (private) from it.
T开发者_StackOverflow中文版he following code raises an error: undefined method \'any_instance\' for String:Class
I have a bunch of very repetitive rspec tests that all have the same format: it \"inserts the correct ATTRIBUTE_NAME\" do
I had 11 or so Rspec tests running sat, until I converted my project to HAML. Then when I ran my tests, I got errors such as:
EDIT:Figured it out. I should be doing (\"span.age\", :content => ...) I am getting the 开发者_Python百科following error when I run this rspec test
I\'m using Sinatra (1.2) and RSpec (2.5) and would like to create a new object with an attribute TDD style. This is how the end result should look like:
I have 2 models, User and Bucket. User has_many Buckets and a Bucket belongs_to a User. In factories.rb, I have:
All my tests f开发者_JS百科ail when I add before_filter authenticate_user! to my controllers. How do I get by this?