You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
505 B
19 lines
505 B
require 'rails_helper'
|
|
|
|
RSpec.describe 'legacy/schools/edit', type: :view do
|
|
before(:each) do
|
|
@school = assign(:school, Legacy::School.create!(
|
|
name: 'MyString',
|
|
district_id: 1
|
|
))
|
|
end
|
|
|
|
it 'renders the edit school form' do
|
|
render
|
|
|
|
assert_select 'form[action=?][method=?]', legacy_school_path(@school), 'post' do
|
|
assert_select 'input#school_name[name=?]', 'school[name]'
|
|
end
|
|
end
|
|
end
|