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,24 @@
require 'spec_helper'
describe "lecturers/edit" do
before(:each) do
@lecturer = assign(:lecturer, stub_model(Lecturer,
:name => "MyString",
:email => "MyString",
:oid => 1,
:picture => "MyString"
))
end
it "renders the edit lecturer form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", lecturer_path(@lecturer), "post" do
assert_select "input#lecturer_name[name=?]", "lecturer[name]"
assert_select "input#lecturer_email[name=?]", "lecturer[email]"
assert_select "input#lecturer_oid[name=?]", "lecturer[oid]"
assert_select "input#lecturer_picture[name=?]", "lecturer[picture]"
end
end
end