forked from bofh/fetsite
calendar feature generiert
This commit is contained in:
17
spec/views/calentries/show.html.erb_spec.rb
Normal file
17
spec/views/calentries/show.html.erb_spec.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe "calentries/show" do
|
||||
before(:each) do
|
||||
@calentry = assign(:calentry, stub_model(Calentry,
|
||||
:summary => "Summary",
|
||||
:typ => 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(/Summary/)
|
||||
rendered.should match(/1/)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user