DEV: Fix rspec-expectations warnings (#228)

This commit is contained in:
Jarek Radosz 2023-09-14 17:50:13 +02:00 committed by GitHub
parent 9e94457154
commit 1eb70c4f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -36,9 +36,9 @@ RSpec.describe DiscourseAi::AiBot::OpenAiBot do
context "when cleaning usernames" do
it "can properly clean usernames so OpenAI allows it" do
subject.clean_username("test test").should eq("test_test")
subject.clean_username("test.test").should eq("test_test")
subject.clean_username("test😀test").should eq("test_test")
expect(subject.clean_username("test test")).to eq("test_test")
expect(subject.clean_username("test.test")).to eq("test_test")
expect(subject.clean_username("test😀test")).to eq("test_test")
end
end