Sha256: 80deb9190d0a48b893ad986484e74073c0e3d21047655b3ef464e71364da7af9
Contents?: true
Size: 605 Bytes
Versions: 2
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'projects/new', type: :view do let(:user) { FactoryBot.create(:user) } let(:project) { FactoryBot.build(:project, owner: user) } before(:each) do assign(:project, project) end it 'renders new project form' do render assert_select 'form[action=?][method=?]', projects_path, 'post' do assert_select 'select#project_owner_id[name=?]', 'project[owner_id]' assert_select 'input#project_name[name=?]', 'project[name]' assert_select 'input#project_closed[name=?]', 'project[closed]' end end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
model_base_generators-0.4.0 | examples/rails-5.0/spec/views/projects/new.html.erb_spec.rb |
model_base_generators-0.4.0 | examples/rails-5.1/spec/views/projects/new.html.erb_spec.rb |