Sha256: 4c81e346dc2c49bed8ff179b893173953fbb33a43fde7afce3d158eb3b684f0f

Contents?: true

Size: 972 Bytes

Versions: 4

Compression:

Stored size: 972 Bytes

Contents

# -*- encoding: utf-8 -*-
require 'spec_helper'

describe "agent_types/index" do
  before(:each) do
    assign(:agent_types, [
      stub_model(AgentType,
        :name => "Name",
        :display_name => "ja: テキスト",
        :note => "MyText",
        :position => 1
      ),
      stub_model(AgentType,
        :name => "Name",
        :display_name => "ja: テキスト",
        :note => "MyText",
        :position => 1
      )
    ])
  end

  it "renders a list of agent_types" 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 => "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 => "テキスト".to_s, :count => 2
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre55 spec/views/agent_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre54 spec/views/agent_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre53 spec/views/agent_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre52 spec/views/agent_types/index.html.erb_spec.rb