Sha256: cc3332cbcb2a840e5e597b679a1d7d2c5e1978fd1a26b61e4df62400ab111080

Contents?: true

Size: 550 Bytes

Versions: 3

Compression:

Stored size: 550 Bytes

Contents

require 'rails_helper'
require 'byebug'

RSpec.describe KepplerFrontend::CallbackFunction, type: :model do

  context 'database' do
    context 'columns' do
      it { should have_db_column(:name).of_type(:string) }
      it { should have_db_column(:description).of_type(:string) }
    end

    context 'Callback user_authenticate exist' do
      let(:all_callbacks) { KepplerFrontend::CallbackFunction.all }

      it { expect(all_callbacks.count).to eq(1) }
      it { expect(all_callbacks.first.name).to eq("user_authenticate") }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keppler-2.1.18 installer/core/spec/models/keppler_frontend/callback/model_spec.rb
keppler-2.1.17 installer/core/spec/models/keppler_frontend/callback/model_spec.rb
keppler-2.1.16 installer/core/spec/models/keppler_frontend/callback/model_spec.rb