Skip to content

Commit c8940e7

Browse files
committed
moved Account class definition outside of setup method
1 parent 2fb9b39 commit c8940e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/cases/offset_and_limit_test_sqlserver.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ def test_should_not_allow_sql_injection_via_limit
2828
end
2929

3030
class WhenSelectingWithLimitAndOffsetOffsetAndLimitTest < ActiveRecord::TestCase
31+
class Account < ActiveRecord::Base; end
3132
def setup
3233
@connection = ActiveRecord::Base.connection
3334
# we have to use a real table as we need the counts
3435
@select_sql = 'SELECT * FROM accounts'
35-
class Account < ActiveRecord::Base; end
36-
3736
# create 10 Accounts
3837
(1..10).each {|i| Account.create!}
3938
end

0 commit comments

Comments
 (0)