Sha256: 206f9fc3c219d55d3216e51efd5b493d675df6e978260f5ae205032b7ed2f110
Contents?: true
Size: 835 Bytes
Versions: 6
Compression:
Stored size: 835 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'issues/edit', type: :view do let(:user) { FactoryGirl.create(:user) } let(:project) { FactoryGirl.create(:project, owner: user) } let(:issue) { FactoryGirl.create(:issue, project: project, creator: user) } before(:each) do assign(:issue, issue) end it 'renders the edit issue form' do render assert_select 'form[action=?][method=?]', issue_path(issue), 'post' do assert_select 'select#issue_project_id[name=?]', 'issue[project_id]' assert_select 'input#issue_title[name=?]', 'issue[title]' assert_select 'select#issue_status[name=?]', 'issue[status]' assert_select 'select#issue_creator_id[name=?]', 'issue[creator_id]' assert_select 'select#issue_assignee_id[name=?]', 'issue[assignee_id]' end end end
Version data entries
6 entries across 6 versions & 1 rubygems