Re: [rspec-users] stub().and_raise() ain't raising?

2012-01-12 Thread Fearless Fool
Justin Ko wrote in post #1040632: > What are the failed expectations? Just paste it. You've identified the problem (see below), but to answer your question: 1) Wizard electricity credentials with valid credentials should spawn external loader Failure/Error: @wizard.electricity_loader.shou

Re: [rspec-users] stub().and_raise() ain't raising?

2012-01-12 Thread Justin Ko
On Jan 12, 2012, at 5:32 PM, Fearless Fool wrote: > I have two blocks of tests: one for testing positive outcomes and one > for testing negative. After poking around, I've concluded that the > underlying :verify_credentials method is getting called, despite the > stub: > > describe 'electricit

[rspec-users] stub().and_raise() ain't raising?

2012-01-12 Thread Fearless Fool
I have two blocks of tests: one for testing positive outcomes and one for testing negative. After poking around, I've concluded that the underlying :verify_credentials method is getting called, despite the stub: describe 'electricity credentials' do before(:each) do @wizard.electricit