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.
educoder/spec/views/edu_settings/new.html.erb_spec.rb

22 lines
484 B

require 'rails_helper'
RSpec.describe "edu_settings/new", type: :view do
before(:each) do
assign(:edu_setting, EduSetting.new(
:name => "MyString",
:value => "MyString"
))
end
it "renders new edu_setting form" do
render
assert_select "form[action=?][method=?]", edu_settings_path, "post" do
assert_select "input[name=?]", "edu_setting[name]"
assert_select "input[name=?]", "edu_setting[value]"
end
end
end