Skip to content

Commit b3fca72

Browse files
author
remi Taylor
authored
Merge pull request #58 from GoogleCloudPlatform/fix-language-spec-examples
Fix and simplify Language entry detection spec example
2 parents eb5bf68 + 0122818 commit b3fca72

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

language/spec/language_samples_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ def capture &block
7878
example "entries from text" do
7979
output = capture {
8080
entries_from_text project_id: @project_id,
81-
text_content: "_why authored a poignant guide to Ruby"
81+
text_content: "Alice wrote a book. Bob likes the book."
8282
}
8383

84-
expect(output).to include "_why PERSON"
85-
expect(output).to include "Ruby OTHER"
84+
expect(output).to include "Alice PERSON"
85+
expect(output).to include "Bob PERSON"
8686
end
8787

8888
example "entries from a file stored in Google Cloud Storage" do
89-
upload "entries.txt", "_why authored a poignant guide to Ruby"
89+
upload "entries.txt", "Alice wrote a book. Bob likes the book."
9090

9191
output = capture {
9292
entries_from_cloud_storage_file(
@@ -95,8 +95,8 @@ def capture &block
9595
)
9696
}
9797

98-
expect(output).to include "_why PERSON"
99-
expect(output).to include "Ruby OTHER"
98+
expect(output).to include "Alice PERSON"
99+
expect(output).to include "Bob PERSON"
100100
end
101101

102102
example "syntax from text" do

0 commit comments

Comments
 (0)