Sha256: f6b782afd25b76cd1fb54ced7c679b21506783bbd4c535f2647e6e6c6e7fff92

Contents?: true

Size: 425 Bytes

Versions: 8

Compression:

Stored size: 425 Bytes

Contents

require 'spec_helper'

describe CurationConcern::HumanReadableType do
  let(:klass) {
    Class.new {
      def self.name; 'HelloWorld';end
      include CurationConcern::HumanReadableType
    }
  }

  it 'should have .human_readable_type' do
    expect(klass.human_readable_type).to eq('Hello World')
  end
  it 'should have #human_readable_type' do
     expect(klass.new.human_readable_type).to eq('Hello World')
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
curate-0.6.6 spec/repository_models/curation_concern/human_readable_type_spec.rb
curate-0.6.5 spec/repository_models/curation_concern/human_readable_type_spec.rb
curate-0.6.4 spec/repository_models/curation_concern/human_readable_type_spec.rb
curate-0.6.3 spec/repository_models/curation_concern/human_readable_type_spec.rb
curate-0.6.1 spec/repository_models/curation_concern/human_readable_type_spec.rb
curate-0.6.0 spec/repository_models/curation_concern/human_readable_type_spec.rb
curate-0.5.6 spec/repository_models/curation_concern/human_readable_type_spec.rb
curate-0.5.5 spec/repository_models/curation_concern/human_readable_type_spec.rb