ooh - good spot! thanks :)
On Tue, Apr 29, 2008 at 12:36 PM, Rick DeNatale <[EMAIL PROTECTED]> wrote:
> On Tue, Apr 29, 2008 at 6:51 AM, steven shingler <[EMAIL PROTECTED]> wrote:
> > Thank you for all the replies.
> > I'm unable to use ruby-debug, cos am running on JRuby,
>
> I haven't yet us
On Tue, Apr 29, 2008 at 6:51 AM, steven shingler <[EMAIL PROTECTED]> wrote:
> Thank you for all the replies.
> I'm unable to use ruby-debug, cos am running on JRuby,
I haven't yet used JRuby, but there seems to be a JRuby wrapper for rdebug
http://wiki.jruby.org/wiki/Using_the_JRuby_Debugger
--
Thank you for all the replies.
I'm unable to use ruby-debug, cos am running on JRuby, but a liberal
sprinkling of logger.debug in the controllers helped me sort out what
was going on the test.log. Thanks for that tip.
It made me want for a way of writing something to the log from within
the rspec
On 29-apr-2008, at 12:46, Rick DeNatale wrote:
On Mon, Apr 28, 2008 at 4:16 PM, Bart Zonneveld
<[EMAIL PROTECTED]> wrote:
On 28 apr 2008, at 17:31, steven shingler wrote:
When "the user logs in with username and password" do
post "/sessions/create", :user => { :login => @username, :pa
On Mon, Apr 28, 2008 at 4:16 PM, Bart Zonneveld <[EMAIL PROTECTED]> wrote:
>
> On 28 apr 2008, at 17:31, steven shingler wrote:
>
> >
> > When "the user logs in with username and password" do
> > post "/sessions/create", :user => { :login => @username, :password
> > => @password }
> > end
> >
On 28 apr 2008, at 17:31, steven shingler wrote:
When "the user logs in with username and password" do
post "/sessions/create", :user => { :login => @username, :password
=> @password }
end
Try post_via_redirect...
greetz,
bartz
___
rspec-users
Assuming there's nothing helpful in test.log..
Adding 'debugger' to the misfiring steps may help troubleshoot this..
You'll prolly need to add the following to your helper.rb first.
require 'rubygems'
require 'ruby-debug'
Re-run the story and it should stop at the debugger.
Between manually s
On Mon, Apr 28, 2008 at 8:31 AM, steven shingler <[EMAIL PROTECTED]> wrote:
> However, I'm getting a
> Spec::Expectations::ExpectationNotMetError: expected redirect to "/",
> got no redirect
Often when this happens, it's because an error occurs in the request.
You can tail test.log to see if t