README.md in aliyun_open_search-0.3.1 vs README.md in aliyun_open_search-0.3.2

- old
+ new

@@ -121,9 +121,31 @@ AliyunOpenSearch::Base.new.basic_params.merge!(custom_params) ) ``` +### 测试 +##### 大部分时候, 我们并不需要真正的发出请求, 需要mock掉 + +```ruby +# RSpec + +# spec_helper.rb +config.before(:each) do + @aliyun_open_search_syncs = allow_any_instance_of(AliyunOpenSearch::Syncs) + .to receive(:execute).and_return(true) +end + +# 需要真正发出请求的时候 +allow_any_instance_of(AliyunOpenSearch::Syncs).to receive(:execute).and_call_original + +``` + +## 公司招聘Rubyist + +如有意向请email我: lcpmarvel@gmail.com + +地点: 杭州(支持远程) ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.