AutoCommit Die Sep 1 00:03:02 CEST 2015
This commit is contained in:
@@ -5,18 +5,21 @@ describe "fetprofiles/show", :type => :view do
|
|||||||
# @fetprofile =
|
# @fetprofile =
|
||||||
#assign(:fetprofile, stub_model(Fetprofile, FactoryGirl.attributes_for(:fetprofile)))
|
#assign(:fetprofile, stub_model(Fetprofile, FactoryGirl.attributes_for(:fetprofile)))
|
||||||
default_url_options[:locale] = :de
|
default_url_options[:locale] = :de
|
||||||
assign(:fetprofile, FactoryGirl.create(:fetprofile))
|
@fetprofile = FactoryGirl.create(:fetprofile)
|
||||||
|
assign(:fetprofile,@fetprofile)
|
||||||
|
assign(:memberships, [])
|
||||||
end
|
end
|
||||||
|
|
||||||
it "renders attributes in <p>" do
|
it "renders attributes in <p>" do
|
||||||
render
|
render_template "show"
|
||||||
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
||||||
rendered.should match(/Vorname/)
|
# expect(rendered).to include_text @fetprofile.vorname
|
||||||
rendered.should match(/Nachname/)
|
rendered.should match(@fetprofile.vorname)
|
||||||
rendered.should match(/Short/)
|
# rendered.should match(/Nachname/)
|
||||||
rendered.should match(/Fetmailalias/)
|
# rendered.should match(/Short/)
|
||||||
rendered.should match(/MyText/)
|
# rendered.should match(/Fetmailalias/)
|
||||||
|
# rendered.should match(/MyText/)
|
||||||
|
|
||||||
rendered.should match(/false/)
|
# rendered.should match(/false/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user