Sha256: 582c2d9ab4cc6ed533619ce2c34ea61c25a808a8d3cb46afe5ae98ae011d850e

Contents?: true

Size: 1.44 KB

Versions: 10

Compression:

Stored size: 1.44 KB

Contents

require 'spec_helper'

describe "templates/index" do
  before(:each) do
    assign(:templates, [
      stub_model(Template,
        :body => "MyText",
        :path => "Path",
        :format => "Format",
        :locale => "Locale",
        :handler => "Handler",
        :partial => false
      ),
      stub_model(Template,
        :body => "MyText",
        :path => "Path",
        :format => "Format",
        :locale => "Locale",
        :handler => "Handler",
        :partial => false
      )
    ])
  end

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