Sha256: 95eaffc7b1734bf20fb6d94d610d67c0fa7495c6b595b55499e7e3d8581eaf70

Contents?: true

Size: 315 Bytes

Versions: 40

Compression:

Stored size: 315 Bytes

Contents

require "spec_helper"

describe "Simple::SQL logging" do
  context 'when running a slow query' do
    before do
      SQL::Logging.slow_query_treshold = 0.05
    end
    after do
      SQL::Logging.slow_query_treshold = nil
    end

    it "does not crash" do
      SQL.ask "SELECT pg_sleep(0.1)"
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
simple-sql-0.5.37 spec/simple/sql/logging_spec.rb
simple-sql-0.5.36 spec/simple/sql/logging_spec.rb
simple-sql-0.5.35 spec/simple/sql/logging_spec.rb
simple-sql-0.5.34 spec/simple/sql/logging_spec.rb
simple-sql-0.5.33 spec/simple/sql/logging_spec.rb
simple-sql-0.5.32 spec/simple/sql/logging_spec.rb
simple-sql-0.5.31 spec/simple/sql/logging_spec.rb
simple-sql-0.5.30 spec/simple/sql/logging_spec.rb
simple-sql-0.5.29 spec/simple/sql/logging_spec.rb
simple-sql-0.5.28 spec/simple/sql/logging_spec.rb
simple-sql-0.5.27 spec/simple/sql/logging_spec.rb
simple-sql-0.5.26 spec/simple/sql/logging_spec.rb
simple-sql-0.5.25 spec/simple/sql/logging_spec.rb
simple-sql-0.5.24 spec/simple/sql/logging_spec.rb
simple-sql-0.5.23 spec/simple/sql/logging_spec.rb
simple-sql-0.5.22 spec/simple/sql/logging_spec.rb
simple-sql-0.5.21 spec/simple/sql/logging_spec.rb
simple-sql-0.5.20 spec/simple/sql/logging_spec.rb
simple-sql-0.5.19 spec/simple/sql/logging_spec.rb
simple-sql-0.5.18 spec/simple/sql/logging_spec.rb