I have a text file which I intend to convert to a CSV (in this case) format. How do I create a proper RSpec test to see if the output will be in the proper format for the following scenario?
I\'ve followed all of the steps that I\'ve been able to find online for configuring Rails 3 with Rspec 2 and Mocha. In my Gemfile:
How would you stub Devise in Rails 3 with rSpec. I have a UsersController and a User model. Both of which a开发者_运维问答re associated with Devise at the moment, I\'m writing controller specs and I r
There is a very noticeable difference in application initiation time between running my specs from the command line with ruby 1.9.x vs. 1.8.7.My application initiates much faster with ruby 1.8.7 than
I don\'t really care about testing file uploads, but since I have 开发者_开发百科validates_attachment_presence, etc.. in my model, rspec is complaining.
I am writing rspec test for my Cars class, and have a question regarding setting up mocks. I\'d like to stub the parts array in Cars, how can i do that?
Similar to the problem described here: http://rpheath.com/posts/411-how-to-use-factory-girl-with-rspec
I\'m writing a Rails plugin and I\'d like to be able to test a controller within the plugin: des开发者_C百科cribe ReportsController, :type => :controller do
I have the following test, with two almost identical blocks. Now i am looking for ways to refactor this cleanly.
In RSpe开发者_开发问答c, what\'s the difference between using should == ... and should eql(...)? I noticed that the RSpec documentation always uses eql, but == is less typing and easier to read. What