Sha256: 9780a833abac2de85cb5930295735a245d092afbb9b87cd7c3e9b6242ea54f47

Contents?: true

Size: 670 Bytes

Versions: 13

Compression:

Stored size: 670 Bytes

Contents

#require 'fulmar/service/helper_service'
#require 'fulmar/domain/model/configuration'

require 'fulmar/domain/service/plugin_service'

module Fulmar
  module Plugin
    module MariaDB
      class Database
      end
    end
  end
end

describe Fulmar::Domain::Service::PluginService do
  before :each do
    @plugin_service = Fulmar::Domain::Service::PluginService.instance
  end

  describe '#classname' do
    it 'returns a module' do
      expect(@plugin_service.classname :maria).to eql(Fulmar::Plugin::MariaDB)
    end

    it 'returns a class' do
      expect(@plugin_service.classname(:maria, :database)).to eql(Fulmar::Plugin::MariaDB::Database)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fulmar-2.2.6 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.2.5 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.2.4 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.2.3 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.2.2 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.2.1 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.2.0 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.1.2 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.1.1 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.1.0 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.0.2 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.0.1 spec/lib/fulmar/service/plugin_service_spec.rb
fulmar-2.0.0 spec/lib/fulmar/service/plugin_service_spec.rb