Sha256: 9396774df207c751b1363564294342f9c8f87a277aca50ff6b0a5d665e119d3d

Contents?: true

Size: 839 Bytes

Versions: 10

Compression:

Stored size: 839 Bytes

Contents

require 'spec_helper'

describe "languages/index" do
  before(:each) do
    assign(:languages, [
      stub_model(Language,
        :name => "Name",
        :code => "Code",
        :default => false
      ),
      stub_model(Language,
        :name => "Name",
        :code => "Code",
        :default => false
      )
    ])
  end

  it "renders a list of languages" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td", :text => "Name".to_s, :count => 2
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td", :text => "Code".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/languages/index.html.erb_spec.rb
kuztuscms-0.0.9 spec/views/kuztuscms/languages/index.html.erb_spec.rb
kuztuscms-0.0.8 spec/views/kuztuscms/languages/index.html.erb_spec.rb
kuztuscms-0.0.7 spec/views/kuztuscms/languages/index.html.erb_spec.rb
kuztuscms-0.0.6 spec/views/kuztuscms/languages/index.html.erb_spec.rb
kuztuscms-0.0.5 spec/views/kuztuscms/languages/index.html.erb_spec.rb
kuztuscms-0.0.4 spec/views/kuztuscms/languages/index.html.erb_spec.rb
kuztuscms-0.0.3 spec/views/kuztuscms/languages/index.html.erb_spec.rb
kuztuscms-0.0.2 spec/views/kuztuscms/languages/index.html.erb_spec.rb
kuztuscms-0.0.1 spec/views/kuztuscms/languages/index.html.erb_spec.rb