Sha256: ae7cadd0c3fa58b7e393709100178bf28dda8d1d0922070cb127f5a34b29dc7f
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 Bytes
Contents
require 'spec_helper' describe "users/new" do before(:each) do assign(:user, stub_model(User, name: "MyString", email: "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_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/new.html.erb_spec.rb |
stuffer-0.0.3 | spec/teststuff/spec/views/users/new.html.erb_spec.rb |