On Wed, Oct 15, 2008 at 3:58 PM, Shane Mingins <[EMAIL PROTECTED]> wrote:
> Hi Mark
>
> Yeah I was looking at that later on too. And yes if you use in a 'before'
> it does. Only setting in an 'it' block is ok.
>
> I was using this as a quick test as we are on an older version of rspec and
> I was
Hi Mark
Yeah I was looking at that later on too. And yes if you use in a
'before' it does. Only setting in an 'it' block is ok.
I was using this as a quick test as we are on an older version of
rspec and I was checking if it may have changed but this fails on 1.1.8
require File.expand_p
I have a different question about the article (pity comments are closed).
def mock_account(stubs={})
stubs = {
:save => true,
:update_attributes => true,
:destroy => true,
:to_xml => ''
}.merge(stubs)
@mock_account ||= mock_model(Account, stubs)
end
With thi
http://blog.davidchelimsky.net/2008/7/1/new-controller-examples
BTW great post, thanks :-)
I was wondering the thinking of this one
describe "responding to POST /accounts" do
describe "with failed save" do
it "should create a new account" do
Account.should_receive(:n