i have some action in my rails application def show @issue = Issue.find(params[:id], :include => [:answers, :comments])
Given a Rakefile that executes some RSpec tests by way of a Spec::开发者_如何学运维Rake::SpecTask, how can I programmatically determine the number of tests that passed, failed, and are pending once th
If I have an example such as the following: describe \"A flux capacitor\" do it \"should flux a lot\" do
Here\'s some simple code that, for each argument specified, will add specific get/set methods named after that argument. If you write attr_option :foo, :bar, then you will see #foo/foo= and #bar/bar=
I\'m using rr (the mocking framework) and rspec with ruby-on-rails. Also, I\'m using the collection short hand for partial rendering. My question: How do I correctl开发者_如何转开发y fill out the the
Does anyone know how to make rspec follow a redirect (in a controller spec)? (e.g test/unit has follow_redirect!)
I\'m developing a Rails application with Rspec for unit testing. Weeks ago, Rspec used to migrate the database to the last version automatically when executing \'rake spec\', but now it doesn\'t do it
I am using rails 2.3.5 .rake spec works fine. This is from spec --help. spec --help -f, --format FORMAT[:WHERE]Specifies what format to use for output. Specify WHERE to tell
I am having a problem in RSpec when my mock object is asked for a URL by the ActionController. The URL is a Mock one and not a correct resource URL.
I\'m pretty new to the world of RSpec. I\'m writing a开发者_JAVA百科 RubyGem that deals with a list of files within a specified directory and any sub-directories. Specifically, it will use Find.find a