Skip to content

Commit

Permalink
concurrency spec
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Dec 17, 2013
1 parent 97eeaa4 commit 87675c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/examples/real_world_spec.rb
@@ -1,4 +1,5 @@
require File.dirname(__FILE__) + '/../spec_helper'
# encoding: utf-8
require 'spec_helper'

describe EasyTranslate do

Expand All @@ -22,6 +23,10 @@
res.should == ['hola mundo', 'te amo']
end

it 'should work concurrently' do
res = EasyTranslate.translate ['hello world', 'i love you', 'good morning'], :to => :spanish, :concurrency => 2, :batch_size => 1
res.should == ['hola mundo', 'te amo', '¡buenos días']
end
end

describe :detect do
Expand Down

0 comments on commit 87675c8

Please sign in to comment.