How to get status from this response?

I have this response when I run in the console:

ruby-1.9.2-p290 :022 > c.login

content-length: "0"
status: "302"
set-cookie: "soup_session_id=995f610405f8afe029b9038da6c22132; path=/; 

expires=Sun, 15 Feb 2032 22:12:13 GMT; HttpOnly"

status: "200"
content-length: "16024"

I would like to test this response but how do I get the status from this

I already tried c.login[“status”].should == 200 but it’s not working:

I write stackoverflow question for this too:

in RSpec something like this?

describe “GET ‘login’” do
it “should be successful” do
get ‘login’
response.should be_success

I already tried this but it recive:

  1. Soup Client should ad new link to
    Failure/Error: get ‘login’
    undefined method `get’ for

    ./spec/soup_spec.rb:10:in `block (2 levels) in <top (required)>’