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

Version Path
kuztuscms-0.0.10 spec/views/kuztuscms/translations/index.html.erb_spec.rb
kuztuscms-0.0.9 spec/views/kuztuscms/translations/index.html.erb_spec.rb
kuztuscms-0.0.8 spec/views/kuztuscms/translations/index.html.erb_spec.rb
kuztuscms-0.0.7 spec/views/kuztuscms/translations/index.html.erb_spec.rb
kuztuscms-0.0.6 spec/views/kuztuscms/translations/index.html.erb_spec.rb
kuztuscms-0.0.5 spec/views/kuztuscms/translations/index.html.erb_spec.rb
kuztuscms-0.0.4 spec/views/kuztuscms/translations/index.html.erb_spec.rb
kuztuscms-0.0.3 spec/views/kuztuscms/translations/index.html.erb_spec.rb
kuztuscms-0.0.2 spec/views/kuztuscms/translations/index.html.erb_spec.rb
kuztuscms-0.0.1 spec/views/kuztuscms/translations/index.html.erb_spec.rb