shoulda
Error when logging in with Machinist in Shoulda test
I am having some trouble getting the right usage of Machinist and Shoulda in my testing. Here is my test:[详细]
2022-12-25 11:34 分类:问答Rails testing with factories. Transactional uniqueness problem
I keep getting validation errors when running factories due to uniqueness constraints on fields.I am using shoulda with factory_girl.I h开发者_JS百科ave a both a unit test and a functional test creati[详细]
2022-12-24 18:11 分类:问答How to repeat a test case without duplicate code?
I\'m using shoulda with Ruby on Rails, and I have the following test cases: class BirdTest < Test::Unit::TestCase[详细]
2022-12-21 19:58 分类:问答Rspec + Shoulda + FactoryGirl = undefined method `reflect_on_association'
I have Rspec + Shoulda + FactoryGirl and I am receiving the following error when attempting to call Shoulda\'s have_many or belong_to methods. All Shoulda methods used in the \"validations\" group wor[详细]
2022-12-21 14:33 分类:问答Getting access to assertion methods from a Shoulda should method
I have a shoulda macro/method that tests controller responses for XPath conditions like so: def self.should_have_xpath(path, &block)[详细]
2022-12-20 07:16 分类:问答iPhone build configurations - Entitlements.plist
Is it possible to have two Entitlements.plist files so that the one which the debugger can attach is associated with the debug build configuration whilst the one without would be associate开发者_Pytho[详细]
2022-12-19 14:17 分类:问答Where should I place universal setup code for rails unit tests?
I would like to stub a web service proxy before all my unit tests. I could call some shared code in e开发者_JAVA百科ach unit test, but I was wondering if there is a better way.[详细]
2022-12-17 21:23 分类:问答Print a List of All Tests in a Rails App
Is there an easy ruby or rails command to get a list of all the tests in an application?I use Shoulda primarily, but if there\'s a ruby solutio开发者_StackOverflown regardless of test suite that would[详细]
2022-12-17 07:16 分类:问答In Rails controller tests, Is there a way to simulate a specific remote IP?
Some functionality in my app works differently depending on the client\'s IP address. Is the开发者_JAVA百科re a way to test that in Rails functional tests? I\'m using Test::Unit and Shoulda.You can do[详细]
2022-12-16 16:28 分类:问答Shoulda: Test validates_presence_of :on => :update
I\'m using Shoulda in combination with Test::Unit on one of the projects I work on.The issue I\'m running into is that I recently changed this:[详细]
2022-12-15 18:20 分类:问答
加载中,请稍侯......