We\'re working on a controller. It looks a bit like this: class ArticlesController < A开发者_开发知识库pplicationController
I\'ve tried putting it on my Gemfile and got: Fetching source index for http://rubygems.org/ You have requested: rspec = 2.4.0
i have a problem with Autotest. In my user model are the username & email address unique. When i start Autotest everything works fine. In the secound round, from autotest, i have a
Im still trying to figure out rspec and right now I am using authlogic to handle my users and sessions. I did the usual authlogic stuff like adding the def current_user method to applciation controlle
I would like to run RSpec to test my code both when I\'m connected to the web and when I\'m not. Unfortunately there are some tests in the application which are dep开发者_开发百科endent on having a l
Due to a legacy database I\'m using, I\'m stuck with MySQL using MyISAM, which means my tables don\'t support transactions. This is causing the tests to fail, since table data ge开发者_如何学JAVAnerat
I need to have different settings for my unit tests and different settings for my integration tests. Example
In my Rakefile, I have a task defined like this: namespace :test do desc \"Run all specs.\" RSpec::Core::RakeTask.new(:spec) do |t|
How can I specify #initialize behaviour with RSpec? For example here: generator.rb class Generator attr_accessor :seed
I am using Rails 3, RSpec 2 and the rcov gem. I am running rcov on my specs with the following rake task: