Sha256: 2105b6fa330d6519cd0d855885fb3585f0dfc3154645ba1373fc5ea21409f6da

Contents?: true

Size: 730 Bytes

Versions: 6

Compression:

Stored size: 730 Bytes

Contents

require 'spec_helper'

describe "users/edit" do
  before(:each) do
    @user = assign(:user, stub_model(User,
      :first_name => "MyString",
      :last_name => "MyString",
      :email => "MyString",
      :phone => 1
    ))
  end

  it "renders the edit user form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form[action=?][method=?]", user_path(@user), "post" do
      assert_select "input#user_first_name[name=?]", "user[first_name]"
      assert_select "input#user_last_name[name=?]", "user[last_name]"
      assert_select "input#user_email[name=?]", "user[email]"
      assert_select "input#user_phone[name=?]", "user[phone]"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mail_manager-3.0.0 spec/test_app/spec/views/users/edit.html.erb_spec.rb
mail_manager-0.1.4 spec/test_app/spec/views/users/edit.html.erb_spec.rb
mail_manager-0.1.2 spec/test_app/spec/views/users/edit.html.erb_spec.rb
mail_manager-0.1.1 spec/test_app/spec/views/users/edit.html.erb_spec.rb
mail_manager-0.1.0 spec/test_app/spec/views/users/edit.html.erb_spec.rb
mail_manager-0.0.1 spec/test_app/spec/views/users/edit.html.erb_spec.rb