require 'spec_helper'

describe "user_sessions/new" do
  before(:each) do
    assign(:user_session, stub_model(UserSession,
      :username => "MyString",
      :password => "MyString"
    ).as_new_record)
  end

  it "renders new user_session form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => user_sessions_path, :method => "post" do
      assert_select "input#user_session_username", :name => "user_session[username]"
      assert_select "input#user_session_password", :name => "user_session[password]"
    end
  end
end
