On Wed, Nov 18, 2009 at 2:53 AM, Tom Stuart wrote:
> Hi,
>
> Is it realistic and desirable to tweak RSpec so that the
> MockExpectationError for a stubbed message works as specified in the
> attached spec patch?
>
> In short, we wasted some time today on a wild goose chase because a failing
> exp
Hi,
Is it realistic and desirable to tweak RSpec so that the MockExpectationError
for a stubbed message works as specified in the attached spec patch?
In short, we wasted some time today on a wild goose chase because a failing
expectation error was saying "unexpected arguments, expected: (#,
#
Thanks! That seems to have knocked out all but 4 errors. I'll keep banging
away...this is fun! :)
Best,
Mark
On Fri, Jan 2, 2009 at 5:00 AM, David Chelimsky wrote:
> On Thu, Jan 1, 2009 at 1:40 PM, Mark A. Richman
> wrote:
> > Thanks that helped! Now I'm getting these errors...any ideas? Looks
On Thu, Jan 1, 2009 at 1:40 PM, Mark A. Richman wrote:
> Thanks that helped! Now I'm getting these errors...any ideas? Looks like
> something cookie related?
>
> http://pastie.org/350148
Only the first 2 look cookie related to me. The rest seem like typos -
either things that you changed after ge
Thanks that helped! Now I'm getting these errors...any ideas? Looks like
something cookie related?
http://pastie.org/350148
On Wed, Dec 31, 2008 at 2:43 PM, Pat Maddox wrote:
> You didn't tell your mock object about the enabled? method. You need
> to stub it out (prob set it to true)
>
> Pat
>
You didn't tell your mock object about the enabled? method. You need
to stub it out (prob set it to true)
Pat
On 12/31/08, Mark A. Richman wrote:
> Hi there...this is my first time using rspec and rspec-rails. When I run
> `rake spec`, I get this type of error over and over...what does it mean,
Hi there...this is my first time using rspec and rspec-rails. When I run
`rake spec`, I get this type of error over and over...what does it mean, and
how can I correct it?
Thanks,
Mark
9)
Spec::Mocks::MockExpectationError in 'SessionController on successful login,
my request cookie token is valid
yes indeed, thanks
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Fri, Dec 5, 2008 at 9:18 PM, Song Lee <[EMAIL PROTECTED]> wrote:
>Profile.stub!(:new).and_return(@profile = mock_model(Profile))
>
> (rdb:1) @profile.user = 3
> Spec::Mocks::MockExpectationError Exception: Mock 'Profile_1300'
> received unexpected message :user= with (3)
>
You're stubbing
no matter how I try to stub! it still showing this error
I have the following in my spec
Profile.stub!(:new).and_return(@profile = mock_model(Profile))
Then
(rdb:1) @profile.stub!(:user)
#,
@name="Pr
ofile_1300">>,
@args_expectation=#], @match_any_args=true>, @args_to_yield=[],
@method_block
10 matches
Mail list logo