Method: EasyqaApi::TestModule#create
- Defined in:
- lib/easyqa_api/items/test_module.rb
#create(attrs, user = @@default_user) ⇒ Hash
Create test module on EasyQA website. Have a class method analog
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/easyqa_api/items/test_module.rb', line 43 def create(attrs, user = @@default_user) attrs = { project_token: @project_token, test_plan_id: @test_plan_id }.merge(attrs) @attributes = send_request("test_plans/#{attrs[:test_plan_id]}/test_modules", :post) do |req| req.body = { test_module: attrs.except(:project_token, :test_plan_id), token: attrs[:project_token], auth_token: user.auth_token } end end |