Shoulda:使手指和眼睛的测试变得容易 源码
a Shoulda可帮助您在Minitest和Test :: Unit下编写更易于理解,可维护的特定于Rails的测试。 快速链接 :loudspeaker: 概述 作为伞形宝石, shoulda宝石不包含任何自己的代码,而是带来了另外两个宝石的行为: 例如: require "test_helper" class UserTest < ActiveSupport :: TestCase context "associations" do should have_many ( :posts ) end context "validations" do should validate_presence_of ( :email ) should allow_value ( "user@example.com" ) . for ( :email ) should_n
文件列表
shoulda-master.zip
(预估有个42文件)
shoulda-master
MAINTAINING.md
4KB
.gitignore
108B
gemfiles
rails_5_1.gemfile.lock
6KB
rails_4_2.gemfile.lock
6KB
rails_6_0.gemfile.lock
7KB
rails_6_0.gemfile
916B
rails_5_1.gemfile
796B
rails_5_2.gemfile.lock
6KB
暂无评论