bb2b38cd44b032118359afbc743efbea12f48e61bnicholesrequire 'spec_helper'
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes expect(prove_options.options[:node]).to eq(ontology.name)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes it 'have the theorem name as theorems parameter' do
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes expect(prove_options.options[:theorems]).to eq([theorem.name])
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes expect(prove_options.options[:'access-token']).to be_present
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes it 'have the access token as access-token parameter' do
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes let!(:url_maps) { [create(:url_map, repository: repository)] }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes it 'have the url-maps as url-catalog parameter' do
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes expect(prove_options.options[:'url-catalog']).to eq(url_maps.join(','))
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes expect(prove_options.options[:'url-catalog']).to be(nil)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes let(:disproven_on_subset) { create :proof_status_csas }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes proof_attempt = create :proof_attempt, proof_status: open
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes %i(open unknown success disproven_on_subset disproven proven contr).each do |status|
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes proof_attempt = create :proof_attempt, proof_status: unknown
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes %i(success disproven_on_subset disproven proven contr).each do |status|
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes proof_attempt = create :proof_attempt, proof_status: success
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes %i(success disproven_on_subset disproven proven contr).each do |status|
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes proof_attempt = create :proof_attempt, proof_status: disproven_on_subset
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes expect(theorem.proof_status).to eq(disproven_on_subset)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes %i(disproven_on_subset disproven proven contr).each do |status|
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes proof_attempt = create :proof_attempt, proof_status: disproven
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes %i(open unknown success disproven_on_subset).each do |status|
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes proof_attempt = create :proof_attempt, proof_status: proven
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes %i(open unknown success disproven_on_subset).each do |status|
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes proof_attempt = create :proof_attempt, proof_status: contr
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes %i(open unknown success disproven_on_subset disproven proven contr).each do |status|
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes before { create :proof_attempt, theorem: theorem, proof_status: send(status) }
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes context "#{statuses.first} and #{statuses.last} -" do
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes create :proof_attempt, proof_status: ProofStatus.find(statuses.first)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes expect(theorem.proof_status.identifier).to eq(statuses.first)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes [%w(THM CSAS), %w(CSA CSAS), %w(CSAS THM), %w(CSAS CSA)].each do |statuses|