Sha256: 95c8097537314e79c95c4cf0fb6dab6df2dcdb1b6301e51e13540b2cc1a70c25

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

require 'spec_helper'

describe Models::Membership do
  it { should validate_presence_of(:application_id) }
  it { should validate_presence_of(:group_id) }
  it { should validate_presence_of(:user_id) }

  it { should belong_to(:group) }
  it { should belong_to(:invitation) }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
restpack_group_service-0.0.7 spec/models/membership_spec.rb
restpack_group_service-0.0.6 spec/models/membership_spec.rb
restpack_group_service-0.0.5 spec/models/membership_spec.rb