Sha256: 8165bd3cf5fef094a2f551fe7d5beca7c99320ea7a829bbd4037ff72de3c1b74
Contents?: true
Size: 523 Bytes
Versions: 2
Compression:
Stored size: 523 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.2 | lib/teststuff/spec/views/users/new.html.erb_spec.rb |
stuffer-0.0.1 | lib/teststuff/spec/views/users/new.html.erb_spec.rb |