Sha256: ba15b12cd55d540bbc3bf773978cb3457dd4a6c269a4af0aec7bedf1e4e233b9

Contents?: true

Size: 244 Bytes

Versions: 2

Compression:

Stored size: 244 Bytes

Contents

require 'rails_helper'

module Popolo
  RSpec.describe OtherName do
    it {should validate_presence_of :name}

    [:start_date, :end_date].each do |attribute|
      it_behaves_like 'a model with a date attribute', attribute
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
popolo-0.1.1 spec/models/popolo/other_name_spec.rb
popolo-0.1.0 spec/models/popolo/other_name_spec.rb