shoulda
Why has shoulda controller test assign_to no access to instance variable?
For my Rails 3 application I use FactoryGirl together with shoulda context (1.0.0.beta1) and matchers (1.0.0.beta3) for my functional tests.[详细]
2023-04-03 22:35 分类:问答Shoulda for Rspec, Rails, outputs there is an error but doesn't output the error itself
Well, I\'m doing some testing right with Rails+Rspec+Shoulda. When I do a test like the following: context @user do[详细]
2023-03-31 15:26 分类:问答How can I reduce rspec test dependency?
If 1 test fails, tons of others do. How could I change this so that the other checks (the开发者_运维技巧 \"it\'s\") below only get done if should be_valid is true, i.e. how can I nest the following \"[详细]
2023-03-24 18:42 分类:问答How to Unit Test namespaced models
In my Rails app, I make heavy use of subdirec开发者_StackOverflow社区tories of the model directory and hence of namespaced models - that is, I have the following directory heirarchy:[详细]
2023-03-23 16:17 分类:问答Default shoulda matchers
This is, quite probably, a ver开发者_如何转开发y rookie question as I\'m just getting started with Shoulda.[详细]
2023-03-20 03:26 分类:问答Unit testing a module that is included in ActiveRecord models
I have a module like this (but more complicated): module Aliasable def self.included(base) base.has_many :aliases, :as => :aliasable开发者_JAVA百科[详细]
2023-03-19 18:52 分类:问答Rspec, shoulda, validate_uniqueness_of with scope and wrong error message
I have following Rspec test: describe Productlimit do before(:each) do @productlimit = Factory.create(:productlimit, :user => Factory.create(:user))[详细]
2023-03-17 04:34 分类:问答Recommended testing frameworks for Rails 2 app with randomness
I have a Rails 2.3.5 app which is serving a card game. I\'ve been a bit lax in writing tests for it (read: I haven\'t written any :embarrassed:), and I\'d like to make a start now.[详细]
2023-03-10 10:23 分类:问答no such file to load -- rspec/matchers - rspec-rails, shoulda, cucumber, factory girl, Rails2.3.10
I\'ve inherited an old Rails2.3 app. It\'s very complex and has (shock, horror) no tests whatsoever. I\'m used to rspec and cucumber so I thought I\'d start working on getting specs and features defin[详细]
2023-03-10 03:53 分类:问答Why am I not getting colors with shoulda and test::unit?
I have 2 identical ruby setups. One of them is a VM of ubuntu running inside of windows. The other is a native ubuntu install. On the VM, my Test::Unit output is colored with green, yellow, and red.[详细]
2023-03-10 00:36 分类:问答