Sha256: ef85b993b36690a82e716cd05db8ca44e1c5f705c6198cd0e9a870eeeb6c41fc
Contents?: true
Size: 1.05 KB
Versions: 10
Compression:
Stored size: 1.05 KB
Contents
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
Version data entries
10 entries across 10 versions & 1 rubygems