我的大部分测试都在工作,但出于某种原因,FactoryGirl.build ...在此语句结束时,should_not be_valid不工作 end FactoryGirl.builduser: @user).should_not be_valid在相同的规范中,这将成功通过:
it "has a maxi
尝试在RubyMine中使用Rspec与Spork相结合;gem 'spork', '~> 1.0rc'--color。$ spork rspec
-- Starting to fill pool...-- Rinda Ring Server listening for connections...
-- build slave 1.