Sha256: 4bf568f440c128175ffd62360a48a6d5e8b4bc2f8c9a9d62f5a608747118f389
Contents?: true
Size: 1.48 KB
Versions: 10
Compression:
Stored size: 1.48 KB
Contents
require 'spec_helper' describe "translations/index" do before(:each) do assign(:translations, [ stub_model(Translation, :locale => "Locale", :key_hash => "Key Hash", :key => "MyText", :value => "MyText", :interpolations => "MyText", :is_proc => false ), stub_model(Translation, :locale => "Locale", :key_hash => "Key Hash", :key => "MyText", :value => "MyText", :interpolations => "MyText", :is_proc => false ) ]) end it "renders a list of translations" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "Locale".to_s, :count => 2 # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "Key Hash".to_s, :count => 2 # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "MyText".to_s, :count => 2 # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "MyText".to_s, :count => 2 # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "MyText".to_s, :count => 2 # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => false.to_s, :count => 2 end end
Version data entries
10 entries across 10 versions & 1 rubygems