Sha256: 70937adfd2787d4a92c3098695e5d67a9728893787fec3b11d0f17d6bc0e24d5

Contents?: true

Size: 365 Bytes

Versions: 1

Compression:

Stored size: 365 Bytes

Contents

require 'spec_helper'

module Alberich
  describe Entity do
    it "should create entity on user creation" do
      u = FactoryGirl.create(:user)
      Entity.for_target(u).should be_a(Entity)
    end

    it "should create entity on user group creation" do
      u = FactoryGirl.create(:user_group)
      Entity.for_target(u).should be_a(Entity)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alberich-0.2.0 spec/models/alberich/entity_spec.rb