Sha256: cff6562a26a3e83cdf3ea4f3a784ad72d156b3e45c903fe58a2a191a08c2a546

Contents?: true

Size: 607 Bytes

Versions: 1

Compression:

Stored size: 607 Bytes

Contents

require 'spec_helper'

describe "users/new" do
  before(:each) do
    assign(:user, stub_model(User,
      :new => "MyString",
      :index => "MyString",
      :show => "MyString"
    ).as_new_record)
  end

  it "renders new user form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form[action=?][method=?]", users_path, "post" do
      assert_select "input#user_new[name=?]", "user[new]"
      assert_select "input#user_index[name=?]", "user[index]"
      assert_select "input#user_show[name=?]", "user[show]"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
genderize-0.0.4 spec/dummy/spec/views/users/new.html.erb_spec.rb