Sha256: 9283b82c470f9ce5e715a2927318f60346ec56fffaed3634595908e1c0f5c4f5
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
require 'spec_helper' describe "users/edit" do before(:each) do @user = assign(:user, stub_model(User, :name => "MyString", :email => "MyString" )) 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_name[name=?]", "user[name]" assert_select "input#user_email[name=?]", "user[email]" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stuffer-0.0.2 | lib/teststuff/spec/views/users/edit.html.erb_spec.rb |
stuffer-0.0.1 | lib/teststuff/spec/views/users/edit.html.erb_spec.rb |