Sha256: 7e1c8a1c74c9d30b932e23127dd002c1cfac8607c23557a5d86dad0b93ee4a57

Contents?: true

Size: 954 Bytes

Versions: 20

Compression:

Stored size: 954 Bytes

Contents

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

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

  it "renders a list of realize_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:nth-child(3)", /テキスト/
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td:nth-child(3)", /MyText/
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
enju_biblio-0.1.3 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.2 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.1 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre71 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre70 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre69 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre68 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre67 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre66 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre65 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre64 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre63 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre62 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre61 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre60 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre59 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre58 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre57 spec/views/realize_types/index.html.erb_spec.rb
enju_biblio-0.1.0.pre56 spec/views/realize_types/index.html.erb_spec.rb