My routes looks like this resources :stores, :except => [:destroy] do resources :toys, :member => {:destroy => :delete}
I have a very basic Admin model: class Admin < ActiveRecord::Base has_secure_password 开发者_运维问答validates_uniqueness_of :email
Artists cannot rate their own artworks it \"should display error if voting on own artwork\", :js => true do
I\'m getting some weird validation behavior: it\'s duplicating my validation error messages and I can\'t figure out what\'s causing it... it doesn\'t do this in the rails console.
I\'m using Rails 3.1 and I wanted to add some stubs and mocks to my specs but I get a NoMethodError: undefined method `stub_model\' for #<Class:0x007ff9c339bd80> (NoMethodError)
i\'m trying to run such test: it \"render form to update an bundle with a specific id\" do bu开发者_如何学编程ndle = mock_model(Bundle)
Right so I started a rails app [3.0.9] a while back and开发者_如何学运维 didn\'t include any testing, and now that I\'m nearing the end of it, the daunting task looms. I don\'t actually have testing e
I\'m trying to test a Rails 3.1 engine with RSpec 2.After a lot of trial and error (and documentation and Stack Overflow searching) the app is working and I\'ve gotten most of the specs to pass.The pr
I am using Ruby on Rails 3.0.9, RSpec-rails 2 and FactoryGirl. I am trying to use the RSpec its feature on a association model (in the following example it is :account) but I have some trouble.
I\'m getting this error when running rspec on a spec file: MYPATH/gems/rspec-core-2.6.4/lib/rspec/core/configuration.rb:419: stack level too deep (SystemStackError)