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