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.
21 lines
485 B
21 lines
485 B
require 'rails_helper'
|
|
|
|
module Legacy
|
|
RSpec.describe 'legacy/schools/new', type: :view do
|
|
before(:each) do
|
|
assign(:school, School.new(
|
|
name: 'MyString',
|
|
district_id: 1
|
|
))
|
|
end
|
|
|
|
it 'renders new school form' do
|
|
render
|
|
|
|
assert_select 'form[action=?][method=?]', legacy_schools_path, 'post' do
|
|
assert_select 'input#school_name[name=?]', 'school[name]'
|
|
end
|
|
end
|
|
end
|
|
end
|