Sha256: d09f1233af52874bab3ca12a705808ec962e9c1c765656cc91ec2edae20de482
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'projects/edit', type: :view do let(:user) { FactoryBot.create(:user) } let(:project) { FactoryBot.create(:project, owner: user) } before(:each) do assign(:project, project) end it 'renders the edit project form' do render assert_select 'form[action=?][method=?]', project_path(project), '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/edit.html.erb_spec.rb |
model_base_generators-0.4.0 | examples/rails-5.1/spec/views/projects/edit.html.erb_spec.rb |