Commit 663c7bace03a14675b91d022c0a6a99e94acbbe7
1 parent
42b3475d
Exists in
master
and in
20 other branches
removing unsed test file
Showing
1 changed file
with
0 additions
and
28 deletions
Show diff stats
test/performance/user_test.rb
@@ -1,28 +0,0 @@ | @@ -1,28 +0,0 @@ | ||
1 | -require 'test_helper' | ||
2 | -require 'rails/performance_test_help' | ||
3 | - | ||
4 | -class UserTest < ActionDispatch::PerformanceTest | ||
5 | - | ||
6 | - attr_reader :environment | ||
7 | - | ||
8 | - def setup | ||
9 | - @environment = Environment.default | ||
10 | - @environment.disable('skip_new_user_email_confirmation') | ||
11 | - | ||
12 | - @environment.person_templates.destroy_all | ||
13 | - user = User.create!(:login => SecureRandom.uuid, :email => 'test@test.com', :password => 'test', :password_confirmation => 'test') | ||
14 | - user.person.update_attribute(:is_template, true) | ||
15 | - user.person.articles.destroy_all | ||
16 | - user.person.boxes.destroy_all | ||
17 | - | ||
18 | - @environment.person_default_template = user.person | ||
19 | - @environment.save! | ||
20 | - end | ||
21 | - | ||
22 | - def test_user_creation_without_confirmation | ||
23 | - User.benchmark("Creating user") do | ||
24 | - user = User.create!(:login => 'changetest', :password => 'test', :password_confirmation => 'test', :email => 'changetest@example.com', :environment => environment) | ||
25 | - end | ||
26 | - end | ||
27 | - | ||
28 | -end |