I\'ve the following problem with a newly set up rails project. Somehow I can\'t seem to get the Devise helpers (such as sign_in) to be required properly.
I was wondering how to test a find_each call in rspec. I\'m used to simply stubbing what I want my models to return so I don\'t rely on test data in the db like this:
I\'m trying to get my head around RSpec\'s 开发者_开发问答incredibly confusing, at least initially, syntax by trying to expand on the default specs that are generated with Rails 3 scaffolding...
I am using cucumber and RSpec for my new ruby on rails application and will be using some third party oAuth APIs to send/retrieve data.I am fairly new to both cucumber and RSpec and have never had to
My rspec title test is failing with: 1) HomeController Get \'index should have the right title Failure/Error: response.should have_selector(\"title\",
Autotest broke with rspec-rails 2.2.1 update. Now I can\'t get it working again.. .even after rolling back to rspec-rais 2.2.0.
I am writing tests with Rspec2 using the Flexmock mocking framework. I expect one of my methods to cache results and want to verify this with my mock.
I\'m getting these failures when running rspec spec/. The spec that is failing is was auto-generated with the scaffolding. I\'m trying to understand RSpec but I don\'t know where to begin looking for
I know you can override the default strategy for creating a Factory object like so: Factory.define :person, :default_strategy => :build do
I have started the book Continuous Testing with Ruby (B2.0 printing), but am running into immediate problems. Per the first chapter, I have created an empty Gem using Jeweler 1.5.1