Sha256: a3c3f5d5ea57619866e54927b97437297fc25f07e140ea6d4a7e561202210890
Contents?: true
Size: 677 Bytes
Versions: 28
Compression:
Stored size: 677 Bytes
Contents
require 'test_helper' class ZineTest < ActiveSupport::TestCase context "a zine" do setup do setup_world() @zine = Factory( :zine ) # 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 @zine.tenant_id, Thread.current[:tenant_id] end # validate the model should have_many( :posts ) should belong_to( :calendar ) end # context zine end # class ZineTest
Version data entries
28 entries across 28 versions & 1 rubygems