Skip to content

Commit

Permalink
spec/console: silence PRAGMA queries
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jul 26, 2011
1 parent 7c6c802 commit 352ad1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/console_fixtures.rb
Expand Up @@ -10,7 +10,7 @@
# used just for the `color` method
log_subscriber = ActiveSupport::LogSubscriber.log_subscribers.first

IGNORE_SQL = /\b(sqlite_master|sqlite_version)\b|^CREATE TABLE/
IGNORE_SQL = /\b(sqlite_master|sqlite_version)\b|^(CREATE TABLE|PRAGMA)\b/

ActiveSupport::Notifications.subscribe(/^sql\./) do |*args|
data = args.last
Expand Down

0 comments on commit 352ad1b

Please sign in to comment.