Skip to content

Commit

Permalink
Fix spec due to API change.
Browse files Browse the repository at this point in the history
  • Loading branch information
newtonapple committed Dec 10, 2017
1 parent 66abdeb commit c3f9e6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/cld_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
end

context "French in HTML - using CLD html " do
subject { CLD.detect_language("<html><head><body><script>A large amount of english in the script which should be ignored if using html in detect_language.</script><p>plus ça change, plus c'est la même chose</p></body></html>", false) }
subject { CLD.detect_language("<html><head><body><script>A large amount of english in the script which should be ignored if using html in detect_language.</script><p>plus ça change, plus c'est la même chose</p></body></html>", false, false) }

it { subject[:name].should eq("FRENCH") }
it { subject[:code].should eq("fr") }

end
context "French in HTML - using CLD text " do
subject { CLD.detect_language("<html><head><body><script>A large amount of english in the script which should be ignored if using html in detect_language.</script><p>plus ça change, plus c'est la même chose</p></body></html>", true) }
subject { CLD.detect_language("<html><head><body><script>A large amount of english in the script which should be ignored if using html in detect_language.</script><p>plus ça change, plus c'est la même chose</p></body></html>", false, true) }

it { subject[:name].should eq("ENGLISH") }
it { subject[:code].should eq("en") }
Expand Down

0 comments on commit c3f9e6f

Please sign in to comment.