Sha256: 6c24f54fce68bd97f71c62e0057fa626afe2de2dc0c2fdbb73ca82596df8717e
Contents?: true
Size: 969 Bytes
Versions: 6
Compression:
Stored size: 969 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'project_assignments/new', type: :view do let(:user) { FactoryGirl.create(:user) } let(:project) { FactoryGirl.create(:project, owner: user) } let(:project_assignment) { FactoryGirl.build(:project_assignment, project: project, user: user) } before(:each) do assign(:project_assignment, project_assignment) end it 'renders new project_assignment form' do render assert_select 'form[action=?][method=?]', project_assignments_path, 'post' do assert_select 'input#project_assignment_id[name=?]', 'project_assignment[id]' assert_select 'select#project_assignment_project_id[name=?]', 'project_assignment[project_id]' assert_select 'select#project_assignment_user_id[name=?]', 'project_assignment[user_id]' assert_select_datetime_field :project_assignment, :started_at assert_select_datetime_field :project_assignment, :finished_at end end end
Version data entries
6 entries across 6 versions & 1 rubygems