Sha256: 218d8bcb06b7ef9e827208c16f4a8af210096d736816f6bf1808919b9bccc40a
Contents?: true
Size: 660 Bytes
Versions: 10
Compression:
Stored size: 660 Bytes
Contents
require 'spec_helper' describe "languages/new" do before(:each) do assign(:language, stub_model(Language, :name => "MyString", :code => "MyString", :default => false ).as_new_record) end it "renders new language form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => languages_path, :method => "post" do assert_select "input#language_name", :name => "language[name]" assert_select "input#language_code", :name => "language[code]" assert_select "input#language_default", :name => "language[default]" end end end
Version data entries
10 entries across 10 versions & 1 rubygems