Sha256: 62b3eac106e1c7a764b3a63fa2d563aa6668767c5aa588147cd0174ef5f87975
Contents?: true
Size: 523 Bytes
Versions: 2
Compression:
Stored size: 523 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.4 | spec/teststuff/spec/views/users/edit.html.erb_spec.rb |
stuffer-0.0.3 | spec/teststuff/spec/views/users/edit.html.erb_spec.rb |