Sha256: 3d313341b0629e15d8dfb087471c5914dd1328905288b757fa87dfb2250f96c7

Contents?: true

Size: 549 Bytes

Versions: 2

Compression:

Stored size: 549 Bytes

Contents

require 'rails_helper'

describe 'Shows job definition revisions', type: :feature do
  before { sign_in }

  let!(:definition) { create(:job_definition, script: "noop:\n") }
  before do
    1.upto(3) { |i| definition.update_and_record_revision({script: "noop:\n" * i}) }
  end

  it do
    visit kuroko2.job_definition_path definition
    expect(page).to have_content('Job Definition Details')

    click_on 'Show script revisions'

    expect(page).to have_content('Script Revisions')
    expect(page).to have_selector('.diff', count: 3)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kuroko2-0.8.0 spec/features/script_revisions_spec.rb
kuroko2-0.7.0 spec/features/script_revisions_spec.rb