Sha256: efc55c99931eb7dae5c017015803f3704ec6628b0c4d9cacb203259b7afe5e33
Contents?: true
Size: 531 Bytes
Versions: 28
Compression:
Stored size: 531 Bytes
Contents
require 'test_helper' class UserTest < ActiveSupport::TestCase context "a user" do setup do setup_world() @user = Factory( :user ) end should have_one( :author ) should have_many( :posts ).through( :author ) should_not allow_value("wild blue").for(:email) 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 end # context user protected end # class
Version data entries
28 entries across 28 versions & 1 rubygems