Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'spec_helper'
- describe 'create app check' do
- url = Airborne.configuration.prod_url
- email = Airborne.configuration.auth_email
- password = Airborne.configuration.auth_password
- title = 'test'
- package = 'ru.test.tapcore.api'
- context 'CHECK_CREATE_APPLICATION' do
- before(:all) do
- @tap = Airborne::TapcoreApi.new(url)
- @tap.auth(url, email, password)
- token = json_body[:token]
- @tap.create_app(url, token, title, package)
- puts body
- end
- context 'response' do
- it 'should be set' do
- expect(response).to_not be(nil)
- end
- end
- context 'headers' do
- it 'should be set' do
- expect(headers).to_not be(nil)
- end
- it 'correct content-type' do
- expect_header('content-type', 'application/json; charset=utf-8')
- end
- end
- context 'body' do
- it 'should be set' do
- expect(body).to_not be(nil)
- end
- end
- context 'status' do
- it 'should be set' do
- expect(status).to_not be(nil)
- end
- it 'correct status' do
- expect_status 201
- end
- end
- context 'json' do
- it 'should be set' do
- expect(json_body).to_not be(nil)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement