Introducing Lecturers

This commit is contained in:
Thomas Blazek
2013-08-19 15:43:54 +02:00
parent 52f7e0b9ba
commit f58c359d36
25 changed files with 544 additions and 8 deletions

View File

@@ -0,0 +1,21 @@
require 'spec_helper'
describe "lecturers/show" do
before(:each) do
@lecturer = assign(:lecturer, stub_model(Lecturer,
:name => "Name",
:email => "Email",
:oid => 1,
:picture => "Picture"
))
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(/Name/)
rendered.should match(/Email/)
rendered.should match(/1/)
rendered.should match(/Picture/)
end
end