Skip to content

Commit aad0240

Browse files
committed
Misc test changes.
* Update TinyTDS test to 0.5.1.rc1 * Fix missing should context for table name. * Specific perm note in testing setup.
1 parent bbcc4cc commit aad0240

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ group :tinytds do
1818
if ENV['TINYTDS_SOURCE']
1919
gem 'tiny_tds', :path => ENV['TINYTDS_SOURCE']
2020
else
21-
gem 'tiny_tds', '0.5.0.rc1'
21+
gem 'tiny_tds', '0.5.1.rc1'
2222
end
2323
end
2424

RUNNING_UNIT_TESTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This process is much easier than it has been before!
99
Default testing uses DBLIB with TinyTDS.
1010

1111
* Setup two databases in SQL Server, [activerecord_unittest] and [activerecord_unittest2]
12-
* Create a [rails] user with an empty password and give it admin perms to both DBs.
12+
* Create a [rails] user with an empty password and give it a Server Role of sysadmin to both DBs.
1313
* $ git clone git://github.com/rails-sqlserver/activerecord-sqlserver-adapter.git
1414
* $ bundle install
1515
* $ bundle exec rake test ACTIVERECORD_UNITTEST_HOST='my.db.net'

test/cases/specific_schema_test_sqlserver.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,12 @@ class SpecificSchemaTestSqlserver < ActiveRecord::TestCase
165165
end
166166

167167
context 'with strange table names' do
168-
SqlServerDollarTableName.new.save
169-
SqlServerDollarTableName.limit(20).offset(1).all
168+
169+
should 'handle dollar symbols' do
170+
SqlServerDollarTableName.new.save
171+
SqlServerDollarTableName.limit(20).offset(1).all
172+
end
173+
170174
end
171175

172176
end

0 commit comments

Comments
 (0)