rspec
rails rspec controller test ActionController::RoutingError
My routes looks like this resources :stores, :except => [:destroy] do resources :toys, :member => {:destroy => :delete}[详细]
2023-04-07 00:37 分类:问答validates_confirmation_of :password doesn't get triggered
I have a very basic Admin model: class Admin < ActiveRecord::Base has_secure_password 开发者_运维问答validates_uniqueness_of :email[详细]
2023-04-06 23:31 分类:问答how to test a stale link click (or link I can't get to) using capybara/rspec
Artists cannot rate their own artworks it \"should display error if voting on own artwork\", :js => true do[详细]
2023-04-06 21:47 分类:问答Rails 3: Duplicate validation error messages during testing
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.[详细]
2023-04-06 21:09 分类:问答rspec mocking "undefined method `stub_model' for #<Class:0x007ff9c339bd80> (NoMethodError)"
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)[详细]
2023-04-06 20:04 分类:问答Rspec controller test fails
i\'m trying to run such test: it \"render form to update an bundle with a specific id\" do bu开发者_如何学编程ndle = mock_model(Bundle)[详细]
2023-04-06 19:31 分类:问答How do I go about adding testing to a finished rails app?
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[详细]
2023-04-06 10:50 分类:问答Testing Rails 3.1 engine routes with RSpec 2
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[详细]
2023-04-06 07:23 分类:问答Trouble on using the RSpec 'its' feature
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.[详细]
2023-04-06 05:20 分类:问答rspec / factory girl causing SystemStackError in Rails 3
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)[详细]
2023-04-06 05:15 分类:问答