Sha256: 6fb32888d99fc82e259aff4fede947ebaa93d822bd4dcc57fd939615e2e49aa2

Contents?: true

Size: 314 Bytes

Versions: 2

Compression:

Stored size: 314 Bytes

Contents

require 'rails_helper'

module Popolo
  RSpec.describe Membership do
    [:organization_id, :person_id].each do |attribute|
      it {should validate_presence_of attribute}
    end

    [: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/membership_spec.rb
popolo-0.1.0 spec/models/popolo/membership_spec.rb