Sha256: a7f2dd0c51a5233a44ca36809b2ce0a3f38e6d765cbd5b21f74a1f7841aa748a

Contents?: true

Size: 1.92 KB

Versions: 2

Compression:

Stored size: 1.92 KB

Contents

=begin
#Sematext Cloud API

#API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`.

OpenAPI spec version: v3

Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 3.0.25
=end

require 'spec_helper'
require 'json'
require 'date'

# Unit tests for stcloud::UserRole
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
# Please update as you see appropriate
describe 'UserRole' do
  before do
    # run before each test
    @instance = stcloud::UserRole.new
  end

  after do
    # run after each test
  end

  describe 'test an instance of UserRole' do
    it 'should create an instance of UserRole' do
      expect(@instance).to be_instance_of(stcloud::UserRole)
    end
  end
  describe 'test attribute "role"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
      # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SUPER_USER", "OWNER", "ADMIN", "USER", "DEMO", "ANONYMOUS"])
      # validator.allowable_values.each do |value|
      #   expect { @instance.role = value }.not_to raise_error
      # end
    end
  end

  describe 'test attribute "role_status"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
      # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["INACTIVE", "ACTIVE"])
      # validator.allowable_values.each do |value|
      #   expect { @instance.role_status = value }.not_to raise_error
      # end
    end
  end

  describe 'test attribute "user_email"' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
SematextCloud-0.3.1 spec/models/user_role_spec.rb
SematextCloud-0.3.0 spec/models/user_role_spec.rb