Files
fetsite/spec/views/fetprofiles/show.html.erb_spec.rb
2015-09-01 01:03:02 +02:00

28 lines
839 B
Ruby

require 'spec_helper'
describe "fetprofiles/show", :type => :view do
include RSpecHtmlMatchers
before(:each) do
# @fetprofile =
#assign(:fetprofile, stub_model(Fetprofile, FactoryGirl.attributes_for(:fetprofile)))
default_url_options[:locale] = :de
@fetprofile = FactoryGirl.create(:fetprofile)
assign(:fetprofile,@fetprofile)
assign(:memberships, [])
end
it "renders attributes in <p>" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
puts rendered
# expect(rendered).to include_text @fetprofile.vorname
expect(rendered).to have_tag('div')
# rendered.should match(/Nachname/)
# rendered.should match(/Short/)
# rendered.should match(/Fetmailalias/)
# rendered.should match(/MyText/)
# rendered.should match(/false/)
end
end