Sha256: 043178c3e60569dbed8c7790aa02cc8fec0e36af3015dc455d266db3ad32bcd8

Contents?: true

Size: 453 Bytes

Versions: 24

Compression:

Stored size: 453 Bytes

Contents

require 'brightcontent/resource'

describe Brightcontent::Resource do
  FakeBlog = Module.new
  Brightcontent::FakeComment = Module.new

  describe '.klass' do
    it 'returns the class of the path' do
      expect(described_class.new('fake_blog').klass).to eq FakeBlog
    end

    it 'returns the brightcontent namespaces path if not exist' do
      expect(described_class.new('fake_comment').klass).to eq Brightcontent::FakeComment
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
brightcontent-core-2.6.0 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.5.1 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.5.0 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.4.6 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.4.5 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.4.4 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.4.3 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.4.2 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.4.1 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.4.0 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.3.4 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.3.3 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.3.2 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.3.1 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.3.0 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.2.2 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.2.1 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.2.0 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.1.5 spec/lib/brightcontent/resource_spec.rb
brightcontent-core-2.1.4 spec/lib/brightcontent/resource_spec.rb