Sha256: a52fd27f218f79ced56795108debf5ee4346e33b70622e757cd987491caf381d

Contents?: true

Size: 349 Bytes

Versions: 11

Compression:

Stored size: 349 Bytes

Contents

require 'spec_helper'

describe LifenFhir::Category do

  let(:category)            { LifenFhir::Category.new }

  describe ':valid?' do

    it 'default case is valid' do
      expect(category).to be_valid
    end

    it 'unknown case is not valid' do
      category.code = "UNKOWN CODE"

      expect(category).to_not be_valid
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lifen_fhir-0.7.1 spec/category_spec.rb
lifen_fhir-0.7.0 spec/category_spec.rb
lifen_fhir-0.6.1 spec/category_spec.rb
lifen_fhir-0.6.0 spec/category_spec.rb
lifen_fhir-0.5.0 spec/category_spec.rb
lifen_fhir-0.4.2 spec/category_spec.rb
lifen_fhir-0.4.1 spec/category_spec.rb
lifen_fhir-0.4.0 spec/category_spec.rb
lifen_fhir-0.3.0 spec/category_spec.rb
lifen_fhir-0.2.0 spec/category_spec.rb
lifen_fhir-0.1.1 spec/category_spec.rb