Sha256: d96bb93fa513d4f181440a553ff3c6734c45b01b95f5fc5782676eeb3598f95e
Contents?: true
Size: 704 Bytes
Versions: 28
Compression:
Stored size: 704 Bytes
Contents
require 'test_helper' class CalendarTest < ActiveSupport::TestCase context "a calendar" do setup do setup_world() @calendar = Factory( :calendar ) # stock object for validation testing end # validate multi-tenanting structure should have_db_column(:tenant_id) should_not allow_mass_assignment_of(:tenant_id) should "define the current tenant" do assert Thread.current[:tenant_id] end should "match the current tenant" do assert_equal @calendar.tenant_id, Thread.current[:tenant_id] end # validate the model should have_many( :zines ) should belong_to( :team ) end # context calendar end # class CalendarTest
Version data entries
28 entries across 28 versions & 1 rubygems