Sha256: 5d9a8f551e501173e572aacf044e52429b203bc57704a9644266d14db4196316
Contents?: true
Size: 697 Bytes
Versions: 6
Compression:
Stored size: 697 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'phases/new', type: :view do let(:user) { FactoryGirl.create(:user) } let(:project) { FactoryGirl.create(:project, owner: user) } let(:phase) { FactoryGirl.build(:phase, project: project) } before(:each) do assign(:phase, phase) end it 'renders new phase form' do render assert_select 'form[action=?][method=?]', phases_path, 'post' do assert_select 'select#phase_project_id[name=?]', 'phase[project_id]' assert_select 'input#phase_name[name=?]', 'phase[name]' assert_select_datetime_field :phase, :started_at assert_select_datetime_field :phase, :finished_at end end end
Version data entries
6 entries across 6 versions & 1 rubygems