<commit_before>require 'rails_helper'

feature 'email is sent to art label owner for new review', %Q{
  As the owner of an art label
  I want to receive an email when someone submits a review for my art label
  So I can stay in the know
} do

  # ACCEPTANCE CRITERIA
  # * A notification email is sento to the owner
  #   of an art label when a new review
  #   is submitted

  scenario 'Email notification successfully sent to art label owner' do
    art_label = FactoryGirl.create(:art_label)
    user = FactoryGirl.create(:user)

    visit root_path
    click_link 'Sign In'
    fill_in 'Email', with: user.email
    fill_in 'Password', with: <PASSWORD>

    click_button 'Sign In'

    click_link art_label.name

    fill_in "Feels", with: "Total garbage."
    click_button "Submit Review"

    expect(page).to have_content("Total garbage.")
    expect(ActionMailer::Base.deliveries.count).to eq(1)
  end
end
<commit_msg>Fixed merged test<commit_after>require 'rails_helper'

feature 'email is sent to art label owner for new review', %Q{
  As the owner of an art label
  I want to receive an email when someone submits a review for my art label
  So I can stay in the know
} do

  # ACCEPTANCE CRITERIA
  # * A notification email is sento to the owner
  #   of an art label when a new review
  #   is submitted

  scenario 'Email notification successfully sent to art label owner' do
    art_label = FactoryGirl.create(:art_label)
    user = FactoryGirl.create(:user)

    visit root_path
    click_link 'Sign In'
    fill_in 'Email', with: user.email
    fill_in 'Password', with: <PASSWORD>

    click_button 'Sign In'

    visit new_art_label_review_path(art_label)

    fill_in "Feels", with: "Total garbage."
    click_button "Submit Review"
    
    review = Review.find_by(feels: "Total garbage.")
    expect(ActionMailer::Base.deliveries.count).to eq(1)
  end
end

{'fraction_non_alphanumeric': 0.07511987213638785, 'fraction_numerical': 0.0010655301012253596, 'mean_word_length': 3.4502369668246446, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3505774', 'n_tokens_mistral': 588, 'n_tokens_neox': 572, 'n_words': 225}