Re: [rspec-users] stubbed methods are not returning what I've stubbed them to return

2013-03-16 Thread Dan Brooking
stub in my other tests, I should be good to go. On Sat, Mar 16, 2013 at 10:28 AM, David Chelimsky wrote: > On Sat, Mar 16, 2013 at 9:11 AM, Dan Brooking > wrote: > > I got it... > > > > I called it using instance_eval. > > > > def app > > Sinatra::Appl

Re: [rspec-users] stubbed methods are not returning what I've stubbed them to return

2013-03-16 Thread Dan Brooking
should == "abcdef" end end On Sat, Mar 16, 2013 at 10:05 AM, Dan Brooking wrote: > OK, so I think based on this, I'm doing it right and it's a Sinatra issue. > I did as you suggested and made a call to > Sinatra::Application.random_string and now my error is &q

Re: [rspec-users] stubbed methods are not returning what I've stubbed them to return

2013-03-16 Thread Dan Brooking
AM, David Chelimsky wrote: > On Sat, Mar 16, 2013 at 7:56 AM, Dan Brooking > wrote: > > I'm working on a small Sintra app and am having trouble getting my stub > to > > return what I want it to. I've been searching and found quite a few with > > this ques

[rspec-users] stubbed methods are not returning what I've stubbed them to return

2013-03-16 Thread Dan Brooking
I'm working on a small Sintra app and am having trouble getting my stub to return what I want it to. I've been searching and found quite a few with this question but no real answers. I also posted this to the sinatrarb google group in case it's an issue there. I have a helper method that returns