<commit_before>require 'spec_helper'
require 'rails_helper'

describe Carrier, "given nothing" do
  it "does not require simple plan changes" do
    expect(subject.requires_simple_plan_changes?).to be_falsey
  end
end

describe Carrier, "given:
 a requirement for simple plan changes
", dbclean: :after_each do
  subject do
    Carrier.new({
      :requires_simple_plan_changes => true
    })
  end

  it "requires simple plan changes" do
    expect(subject.requires_simple_plan_changes?).to be_truthy
  end
end

describe Carrier, "given nothing" do
  it "does not require simple renewal" do
    expect(subject.requires_simple_renewal?).to be_falsey
  end
end

describe Carrier, "given:
 a requirement for simple renewal
", dbclean: :after_each  do
  subject do
    Carrier.new({
      :requires_simple_renewal => true
    })
  end<commit_msg>refs #89279 Adding spec for new field canceled_renewal_causes_new_coverage on carrier model<commit_after>require 'spec_helper'
require 'rails_helper'

describe Carrier, "given nothing" do
  it "does not require simple plan changes" do
    expect(subject.requires_simple_plan_changes?).to be_falsey
  end
end

describe Carrier, "given:
 a requirement for simple plan changes
", dbclean: :after_each do
  subject do
    Carrier.new({
      :requires_simple_plan_changes => true
    })
  end

  it "requires simple plan changes" do
    expect(subject.requires_simple_plan_changes?).to be_truthy
  end
end

describe Carrier, "given:
 a requirement for canceled renewal causes new coverage
", dbclean: :after_each do
  subject do
    Carrier.new({
                    :canceled_renewal_causes_new_coverage => true
                })
  end

  it "requires simple plan changes" do
    expect(subject.canceled_renewal_causes_new_coverage?).to be_truthy
  end
end

describe Carrier, "given nothing" do
  it "does not require simple renewal" do
    expect(subject.requires_simple_renewal?).to be_falsey
  end
end

describe Carrier, "given:
 a requirement for simple renewal
", dbclean: :after_each  do
  subject do
    Carrier.new({
      :requires_simple_renewal => true
    })
  end
{'fraction_non_alphanumeric': 0.07132735002361833, 'fraction_numerical': 0.0023618327822390174, 'mean_word_length': 3.9485981308411215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3487640', 'n_tokens_mistral': 706, 'n_tokens_neox': 643, 'n_words': 203}