I just lately update my model with attr_accessible fields and suddenly some tests would not work, as i would expect. However, i have a spec like:
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
I\'m trying to firm up my understanding of why this actually works My application is just the default scaffold for 开发者_如何学Cthe purposes of this experiment.
I\'m using the geocoder gem to add geocoding functionality to one of my Active Record model classes. This works great, but I don\'t actually want the geocoding to fire during unit tests.
I have the following in my GEMFILE: group :development do gem开发者_如何学Go \'rspec-rails\' gem \'annotate-models\'
I have the following module: # lib/translator/sms_command.rb module Translator module SmsCommand def self.included(klass)
I\'m writing a rails 3 railtie which defines some view helpers. Now I wonder how to spec the view helper methods because I cannot instantiate a module. I already searched and read a lot, but I just co
I\'m trying to get started with RSpec. I already had Ruby 1.8.7 installed on my Windows 7 machine. So I typed gem install rspec and that seemed to work. But if I type spec in the command line, the co
Using rspec, is it possible to test a view to make sure all the syntax in the view doesn\'t have any errors?
I am trying to get tests working after switching from Webrat to Capybara.When I try to sign in to the application I am getting a \"Invalid username/password\" error, despite just having created the us