5
के साथ इस लिख सकता हूँ मैं सबसे वर्तमान संस्करण को rspec की मेरी संस्करण उन्नत बनाया है और मैं परीक्षण तोड़ने समान वाक्य रचनामैं कैसे rspec
it "should delete a company" do
expect { click_link "Delete Company" }.should change(Company, :count).by(-1)
end
मैं documentation को देखा और मैं कुछ भी नहीं देख सकता था कि होगा है कि है वर्तमान verion में ऐसा ... कैसे इस
त्रुटि मैं प्राप्त करने के लिए पर किसी भी विचार
9) Company Pages Edit page as an admin user should delete a company
Failure/Error: expect { click_link "Delete Company" }.should change(Company, :count).by(-1)
NoMethodError:
undefined method `call' for #<RSpec::Expectations::ExpectationTarget:0x007fccafdfc360>
# ./spec/requests/companies_spec.rb:79:in `block (3 levels) in <top (required)>'
नहीं करना चाहिए यह होना '' '' '' should'' के बजाय to''' हो जाता है ' – phoet
मैं परीक्षण करूँगा कि – Trace
@phoet सही है। –