Files
fetsite/spec/views/lecturers/edit.html.erb_spec.rb
2013-08-19 15:43:54 +02:00

25 lines
760 B
Ruby

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