Skip to content

Commit 62ebf39

Browse files
committed
Make moderations spec more robust
1 parent 33341ea commit 62ebf39

File tree

2 files changed

+31
-25
lines changed

2 files changed

+31
-25
lines changed

spec/fixtures/cassettes/moderations_i_m_worried_about_that_.yml renamed to spec/fixtures/cassettes/moderations_have_a_great_day_.yml

Lines changed: 30 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/openai/client/moderations_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
RSpec.describe OpenAI::Client do
22
describe "#moderations", :vcr do
3-
let(:input) { "I'm worried about that." }
3+
let(:input) { "Have a great day!" }
44
let(:cassette) { "moderations #{input}".downcase }
55
let(:response) do
66
OpenAI::Client.new.moderations(

0 commit comments

Comments
 (0)