Moving to new controller in functional test

Discussion in 'Ruby' started by Ben Burdick, Sep 19, 2005.

  1. Ben Burdick

    Ben Burdick Guest

    I have been banging my head on this...

    post {:controller => 'login', :action => 'login'}, {:invite_id =>
    @invite_to_lee_space.id}

    is a line that is giving me syntax errors in a functional test - i
    cannot see why though - any thought?
     
    Ben Burdick, Sep 19, 2005
    #1
    1. Advertising

  2. Ben Burdick

    Ara.T.Howard Guest

    On Tue, 20 Sep 2005, Ben Burdick wrote:

    > I have been banging my head on this...
    >
    > post {:controller => 'login', :action => 'login'}, {:invite_id => > @invite_to_lee_space.id}
    >
    > is a line that is giving me syntax errors in a functional test - i cannot see
    > why though - any thought?


    post(
    {:controller => 'login', :action => 'login'},
    {:invite_id => > @invite_to_lee_space.id}
    )

    ruby thinks the first hash is a block passed to 'post'.

    hth.

    -a
    --
    ===============================================================================
    | email :: ara [dot] t [dot] howard [at] noaa [dot] gov
    | phone :: 303.497.6469
    | Your life dwells amoung the causes of death
    | Like a lamp standing in a strong breeze. --Nagarjuna
    ===============================================================================
     
    Ara.T.Howard, Sep 20, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anarki
    Replies:
    1
    Views:
    303
    Alf P. Steinbach
    Aug 12, 2007
  2. linkswanted
    Replies:
    0
    Views:
    1,268
    linkswanted
    Dec 21, 2007
  3. linkswanted
    Replies:
    0
    Views:
    660
    linkswanted
    Jan 24, 2008
  4. James Fassett

    Moving to functional programming

    James Fassett, Jul 11, 2008, in forum: Python
    Replies:
    10
    Views:
    486
    Terry Reedy
    Jul 16, 2008
  5. Michael Earls
    Replies:
    3
    Views:
    3,389
    MBUnit
    Mar 24, 2009
Loading...

Share This Page