0
從舊rspec的語法轉換到新的一個:如何將舊的rspec語法「it {should_not be_valid}」轉換爲rspec2?
老:
describe "when password is not present" do
before { @user.password = @user.password_confirmation = " " }
it { should_not be_valid }
end
的這部分應該怎麼看起來像一個較新的期待語法?