rspec2
Test only one it or describe with Rspec
On TestUnit you can launch one test in file with -n option for example require \'test_helper\' class UserTest < ActiveSupport::TestCase[详细]
2023-03-15 23:19 分类:问答Equality using OR in RSpec 2
Wh开发者_C百科at is the correct way to write the following example? The player\'s score should equal 5 or 8.[详细]
2023-03-15 19:15 分类:问答Testing controller name that breaks naming convention
I have called my controller UtilityDREventsController though it is defined in the file named utility_dr_events_controller.rb.[详细]
2023-03-15 13:35 分类:问答RSpec Model Validation failing but works fine in Rails Console?
I have been really stuck on this problem. My validation for my model fails (like it should) when I\'m testing it out in rails console, but my rspec example fails because it validates anyway (which it[详细]
2023-03-15 02:27 分类:问答Rails 3 Validation Question (Rspec)
Completely stumped by this.I swear, this looks like it should work bu开发者_开发技巧t it doesnt.The testing database has been updated (rake db:migrate - rake:db:test:clone).I\'m hoping I\'m doing some[详细]
2023-03-14 21:24 分类:问答Trouble testing controller using rspec and stubs
I have a hard time testing my controller with before_filters, exceptions and some mocking and stubing.[详细]
2023-03-13 21:06 分类:问答Getting some unexpected errors while testing a Rails 3 controller
I have a services model defined as such: class Service < ActiveRecord::Base attr_accessible :service_type #, ...[详细]
2023-03-13 03:21 分类:问答Unit testing a controller method that is called via a custom route
How do I unit test a controller method that is called via a custom route? The relevant route is: /auth/:provider/callback(.:format) {:controller=>\"sessions\", :action=>\"create\"}[详细]
2023-03-12 18:03 分类:问答Trouble with rspec test with a polymorphic class
I\'m using MongoMapper instead of ActiveRecord. I have a User model and a Task model. In the Task model, I have 2 attributes as follow:[详细]
2023-03-11 22:54 分类:问答Rspec 2 and Rails 3 stubbing / mocking
I am currently in the process of migration to rails 3 from rails 2 in a large application. In our functional specs, we have alot开发者_C百科 of stuff like this:[详细]
2023-03-11 02:18 分类:问答