Sha256: 0c858297017ebb95576c72bd213d78d9b055f34a6d679b808a08ff97930bc209
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class UserTest < ActiveSupport::TestCase context "user" do context 'user instance' do setup do @user = Factory(:user) end should have_many :uploads should 'be able to upload' do assert @user.can_upload?(@user) end should 'not have methods from uploader mixin' do assert !defined?(User.is_public) assert !defined?(@user.is_image?) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uploader-3.1.0 | test/rails_test/test/unit/user_test.rb |
uploader-3.0.2 | test/rails_test/test/unit/user_test.rb |
uploader-3.0.1 | test/rails_test/test/unit/user_test.rb |