require 'spec_helper' describe "translations/edit" do before(:each) do @translation = assign(:translation, stub_model(Translation, :locale => "MyString", :key_hash => "MyString", :key => "MyText", :value => "MyText", :interpolations => "MyText", :is_proc => false )) end it "renders the edit translation form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => translations_path(@translation), :method => "post" do assert_select "input#translation_locale", :name => "translation[locale]" assert_select "input#translation_key_hash", :name => "translation[key_hash]" assert_select "textarea#translation_key", :name => "translation[key]" assert_select "textarea#translation_value", :name => "translation[value]" assert_select "textarea#translation_interpolations", :name => "translation[interpolations]" assert_select "input#translation_is_proc", :name => "translation[is_proc]" end end end