When running rake spec:rcov for a Rails 3 application, the files in the spec/ directory are getting included in the coverage statistics, but I don\'t want them to be. I want coverage statistics only f
I am having some difficulty in testing my login procedure.Currently, I have the following request spec:
Basically I\'d like to create an array and then append to it during my specs before finally processing and displaying it to the user. I can come up with a few workarounds but ideally I\'d like to do t
What I have now: class User < ActiveRecord::Base has_many :people end ... and... class Person < ActiveRecord::Base
in my rails3 app I have installed rspec. But when I run the rspec command in my console it gives the following error.
I use Rails 3.0.4 and RSpec 2.5. In my controllers I use named scopes heavily, for example @collection = GuestbookEntry.nonreplies.bydate.inclusive.paginate(
Using capybara (0.3.9) with steak and when running my steak acceptance spec with :js => true, firefox is fired and it works.
How does one do this? Couldn\'t find any examp开发者_如何学编程les online... (using rspec 2.5.0 & rails 3.0.5)Found it in shoulda-matchers: http://rubydoc.info/github/thoughtbot/shoulda-matchers/m
From Rails 3 / Rspec 2, I\'m attempting to leverage the render_views feature of controller specs.The issue I\'ve come across is that we\'ve just installed the kaminari pager gem, and I want to stub ou
I want to develop a small webapp with Ruby on Rails and mongoDB. I use Rails 3.0.3 and the mongoid-gem. Now I want to do some tests with rspec, but it does not work as I expect. The tests give not the