Sha256: e252eea99238c3f46e7862729ba555c57b1a5f5d5300c7a1fbdb985777612f70

Contents?: true

Size: 481 Bytes

Versions: 16

Compression:

Stored size: 481 Bytes

Contents

require 'test_helper'

class UserTest < ActiveSupport::TestCase
  context "user" do
    setup do
      @user = Factory(:user)
    end

    context "after applied acts_as_mail_receiver" do
      should "has payload_columns class attr" do
        assert_equal User.payload_columns.sort, ["firstname", "lastname"].sort
      end

      should "has groups class attr" do
        assert_equal User.groups.sort, ["all", "english_users", "chinese_users"].sort
      end
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mail_engine-0.1.15 test/unit/user_test.rb
mail_engine-0.1.14 test/unit/user_test.rb
mail_engine-0.1.13 test/unit/user_test.rb
mail_engine-0.1.12 test/unit/user_test.rb
mail_engine-0.1.11 test/unit/user_test.rb
mail_engine-0.1.10 test/unit/user_test.rb
mail_engine-0.1.9 test/unit/user_test.rb
mail_engine-0.1.8 test/unit/user_test.rb
mail_engine-0.1.7 test/unit/user_test.rb
mail_engine-0.1.6 test/unit/user_test.rb
mail_engine-0.1.5 test/unit/user_test.rb
mail_engine-0.1.4 test/unit/user_test.rb
mail_engine-0.1.3 test/unit/user_test.rb
mail_engine-0.1.2 test/unit/user_test.rb
mail_engine-0.1.1 test/unit/user_test.rb
mail_engine-0.1.0 test/unit/user_test.rb