forked from bofh/fetsite
change meetings
This commit is contained in:
23
spec/views/fetmeetingtops/show.html.erb_spec.rb
Normal file
23
spec/views/fetmeetingtops/show.html.erb_spec.rb
Normal file
@@ -0,0 +1,23 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "fetmeetingtops/show" do
|
||||
before(:each) do
|
||||
@fetmeetingtop = assign(:fetmeetingtop, stub_model(Fetmeetingtop,
|
||||
:title => "Title",
|
||||
:text => "MyText",
|
||||
:discussion => "MyText",
|
||||
:ersteller => "Ersteller",
|
||||
:fetmeeting_id => 1
|
||||
))
|
||||
end
|
||||
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
# Run the generator again with the --webrat flag if you want to use webrat matchers
|
||||
rendered.should match(/Title/)
|
||||
rendered.should match(/MyText/)
|
||||
rendered.should match(/MyText/)
|
||||
rendered.should match(/Ersteller/)
|
||||
rendered.should match(/1/)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user