Skip to content

Commit ec0dcce

Browse files
author
Frank Natividad
committed
Updated language spec expectation to fix bug
Sentiment reported is the document sentiment. The expect sentiment was meant for a specific sentence.
1 parent bbe3168 commit ec0dcce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/spec/language_samples_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def capture &block
5353

5454
expect {
5555
sentiment_from_text project_id: @project_id, text_content: negative_text
56-
}.to output(/^-1.0 /).to_stdout
56+
}.to output(/^0.1/).to_stdout
5757
end
5858

5959
example "sentiment from a file stored in Google Cloud Storage" do
@@ -72,7 +72,7 @@ def capture &block
7272
project_id: @project_id,
7373
storage_path: "gs://#{@bucket_name}/negative_text.txt"
7474
)
75-
}.to output(/^-1.0 /).to_stdout
75+
}.to output(/^0.1/).to_stdout
7676
end
7777

7878
example "entries from text" do

0 commit comments

Comments
 (0)