Sha256: ec9c2ca1d81054459750d7942168faf3f4ba5aea39aed29ed1f11e03c40b4892
Contents?: true
Size: 675 Bytes
Versions: 10
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' describe "languages/edit" do before(:each) do @language = assign(:language, stub_model(Language, :name => "MyString", :code => "MyString", :default => false )) end it "renders the edit 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(@language), :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