Sha256: f1b69aa924e0498251e91b45a154f944d598a220c9e5030f6b5f96006d46f1fa
Contents?: true
Size: 949 Bytes
Versions: 20
Compression:
Stored size: 949 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe "create_types/index" do before(:each) do assign(:create_types, [ stub_model(CreateType, :name => "Name", :display_name => "ja: テキスト", :note => "MyText", :position => 1 ), stub_model(CreateType, :name => "Name", :display_name => "ja: テキスト", :note => "MyText", :position => 1 ) ]) end it "renders a list of create_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