Sha256: b4d8afbbb7393d13d9908857f275ab3c3984b0cef704c60254dac392fec6b117

Contents?: true

Size: 872 Bytes

Versions: 56

Compression:

Stored size: 872 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe 'RubyRabbitmqJanus::RRJAdmin -- set_log_timestamps', type: :request,
                                                              level: :admin,
                                                              name: :set_log_timestamps do
  before do
    help_admin_prepare
    help_admin_request_tested(parameters)
  end

  let(:instance) { { 'instance' => RubyRabbitmqJanus::Models::JanusInstance.find('1').id.to_s } }
  let(:type) { 'admin::set_log_timestamps' }
  let(:parameters) { { 'timestamps' => debug } }

  context 'when debug is true' do
    let(:debug) { true }

    it { expect(@transaction.to_json).to match_json_schema('base::success') }
  end

  context 'when debug is false' do
    let(:debug) { false }

    it { expect(@transaction.to_json).to match_json_schema('base::success') }
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.2.pre.306 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.305 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.302 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.297 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.296 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.286 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.285 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.2.pre.284 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.1 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.1.pre.274 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.0.pre.272 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.0 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.0.pre.269 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.7.0.pre.267 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.6.0 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.263 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.261 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.260 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.259 spec/request/admin/request_set_log_timestamps_spec.rb
ruby_rabbitmq_janus-2.6.0.pre.258 spec/request/admin/request_set_log_timestamps_spec.rb