Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 23530a9

Browse files
committed
make it simpler
1 parent 34c28e6 commit 23530a9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

spec/lib/personas/concept_finder_spec.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111

1212
describe "#system_prompt" do
1313
before do
14-
concepts = []
15-
concepts << Fabricate(:inferred_concept, name: "programming")
16-
concepts << Fabricate(:inferred_concept, name: "testing")
17-
concepts << Fabricate(:inferred_concept, name: "ruby")
14+
Fabricate(:inferred_concept, name: "programming")
15+
Fabricate(:inferred_concept, name: "testing")
16+
Fabricate(:inferred_concept, name: "ruby")
1817
end
1918

2019
it "includes existing concepts when available" do
2120
prompt = persona.system_prompt
2221

23-
concepts.each { |concept| expect(prompt).to include(concept.name) }
22+
InferredConcept.all.each { |concept| expect(prompt).to include(concept.name) }
2423
end
2524

2625
it "handles empty existing concepts" do

0 commit comments

Comments
 (0)