forked from bofh/fetsite
29 lines
957 B
Ruby
29 lines
957 B
Ruby
require 'spec_helper'
|
|
|
|
|
|
describe "fetprofiles/index" do
|
|
|
|
before(:each) do
|
|
default_url_options[:locale] = :de
|
|
fetprofile1 = FactoryGirl.create(:fetprofile)
|
|
fetprofile2 = FactoryGirl.create(:fetprofile2)
|
|
fetprofile3 = FactoryGirl.create(:fetprofile3)
|
|
fetprofile4 = FactoryGirl.create(:fetprofile_withadress)
|
|
@fetprofiles=[fetprofile1, fetprofile2, fetprofile3, fetprofile4]
|
|
assign(:fetprofiles,@fetprofiles)
|
|
|
|
end
|
|
|
|
it "renders a list of fetprofiles" do
|
|
render
|
|
|
|
assert_select "tr>td", :text => "Vorname".to_s, :count => 2
|
|
assert_select "tr>td", :text => "Nachname".to_s, :count => 2
|
|
assert_select "tr>td", :text => "Short".to_s, :count => 2
|
|
assert_select "tr>td", :text => "Fetmailalias".to_s, :count => 2
|
|
assert_select "tr>td", :text => "MyText".to_s, :count => 2
|
|
assert_select "tr>td", :text => "Picture".to_s, :count => 2
|
|
assert_select "tr>td", :text => false.to_s, :count => 2
|
|
end
|
|
end
|