Commit 90a7d2cdf032878fd99f8cf2d480ff294f2aec1d

Authored by lanrion
1 parent f211b680
Exists in master

add department user spec

spec/api/department_spec.rb 0 → 100644
@@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
  1 +describe QyWechatApi::Api::Department do
  2 +
  3 + it "#list department" do
  4 + response = $client.department.list
  5 + expect(response.code).to eq(QyWechatApi::OK_CODE)
  6 + end
  7 +
  8 +end
spec/api/user_spec.rb 0 → 100644
@@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
  1 +describe QyWechatApi::Api::User do
  2 +
  3 + it "#covert_to_open_id" do
  4 + response = $client.user.covert_to_open_id("huaitao")
  5 + expect(response.code).to eq(QyWechatApi::OK_CODE)
  6 + end
  7 +
  8 +end