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

Commit 09938b5

Browse files
committed
FIX: Spec
1 parent 5f24fbc commit 09938b5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

spec/lib/modules/sentiment/entry_point_spec.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,8 @@ def sentiment_classification(post, classification)
7777
sentiment_classification(pm, positive_classification)
7878

7979
report = Report.find("overall_sentiment")
80-
positive_data_point = report.data[0][:data].first[:y].to_i
81-
negative_data_point = report.data[1][:data].first[:y].to_i
82-
83-
expect(positive_data_point).to eq(1)
84-
expect(negative_data_point).to eq(-1)
80+
overall_sentiment = report.data[0][:data][:y].to_i
81+
expect(overall_sentiment).to eq(2)
8582
end
8683
end
8784

0 commit comments

Comments
 (0)