<commit_before>require "rails_helper"

describe SlackMessageServices::RemindMembersWhoForgetOrdering do

  describe ".call" do
    let!(:today_order) { FactoryGirl.create(:order) }
    let!(:tofu) { FactoryGirl.create(:dish, name: "Tofu", price: 12, item_number: 1) }
    let!(:fruit) { FactoryGirl.create(:dish, name: "Fruit", price: 15, item_number: 2) }
    let!(:order_item1) { FactoryGirl.create(:order_item, order: today_order, username: "tangnv", dish: tofu)}

    it "Sends all list of dishes to lunch channel" do
      VCR.use_cassette("users_have_not_order") do
        allow(GetListMembersService).to receive(:call).and_return(%w(billy cuongvu linhvn09 tangnv))
        expect(SlackMessageServices::Base).to receive(:send_message)
        described_class.call
      end
    end
  end
end
<commit_msg>modify describe message<commit_after>require "rails_helper"

describe SlackMessageServices::RemindMembersWhoForgetOrdering do

  describe ".call" do
    let!(:today_order) { FactoryGirl.create(:order) }
    let!(:tofu) { FactoryGirl.create(:dish, name: "Tofu", price: 12, item_number: 1) }
    let!(:fruit) { FactoryGirl.create(:dish, name: "Fruit", price: 15, item_number: 2) }
    let!(:order_item1) { FactoryGirl.create(:order_item, order: today_order, username: "tangnv", dish: tofu)}

    it "Sends notice message to users have not ordered" do
      VCR.use_cassette("users_have_not_order") do
        allow(GetListMembersService).to receive(:call).and_return(%w(billy cuongvu linhvn09 tangnv))
        expect(SlackMessageServices::Base).to receive(:send_message)
        described_class.call
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.12461820403176542, 'fraction_numerical': 0.010995723885155772, 'mean_word_length': 4.7073170731707314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7656831', 'n_tokens_mistral': 574, 'n_tokens_neox': 533, 'n_words': 118}