Sha256: a7d1da32cdcfca03077221cf0ecc78bbf6eba65aad6359ec204b1802fa6d8467

Contents?: true

Size: 1.92 KB

Versions: 7

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: 2.4.12

=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

7 entries across 7 versions & 1 rubygems

Version Path
SematextCloud-0.2.0 spec/models/user_role_spec.rb
SematextCloud-0.1.5 spec/models/user_role_spec.rb
SematextCloud-0.1.4 spec/models/user_role_spec.rb
SematextCloud-0.1.3 spec/models/user_role_spec.rb
SematextCloud-0.1.2 spec/models/user_role_spec.rb
SematextCloud-0.1.1 spec/models/user_role_spec.rb
SematextCloud-0.1.0 spec/models/user_role_spec.rb