aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-02-16 21:08:39 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-02-16 21:49:50 -0300
commit141313c6510bb87985969f4dc31dedc46b7e4c76 (patch)
treef9b975a71fe2d155d5a0d2bd9be89f992cbed72c /activerecord/test/cases/adapters
parent99cdad6d9c06ff11770390c2ff01d69a1259066f (diff)
downloadrails-141313c6510bb87985969f4dc31dedc46b7e4c76.tar.gz
rails-141313c6510bb87985969f4dc31dedc46b7e4c76.tar.bz2
rails-141313c6510bb87985969f4dc31dedc46b7e4c76.zip
Don't skip tests if they are not broken. Just don't define they
Diffstat (limited to 'activerecord/test/cases/adapters')
-rw-r--r--activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb b/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
index 02834edf7b..73cb739b2b 100644
--- a/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
+++ b/activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
@@ -33,9 +33,8 @@ module ActiveRecord
end
end
- def test_connect_with_url
- skip "can't establish new connection when using memory db" if in_memory_db?
- begin
+ unless in_memory_db?
+ def test_connect_with_url
original_connection = ActiveRecord::Base.remove_connection
tf = Tempfile.open 'whatever'
url = "sqlite3://#{tf.path}"
@@ -46,11 +45,8 @@ module ActiveRecord
tf.unlink
ActiveRecord::Base.establish_connection(original_connection)
end
- end
- def test_connect_memory_with_url
- skip "can't establish new connection when using memory db" if in_memory_db?
- begin
+ def test_connect_memory_with_url
original_connection = ActiveRecord::Base.remove_connection
url = "sqlite3:///:memory:"
ActiveRecord::Base.establish_connection(url)