Skip to content

Commit

Permalink
Work without deprecation warnings on rspec 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Nov 29, 2014
1 parent 5acb9fb commit d4c9c10
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/sequel_postgresql_triggers_spec.rb
Expand Up @@ -7,6 +7,17 @@
$:.unshift(File.join(File.dirname(File.dirname(File.expand_path(__FILE__))), 'lib'))
require 'sequel_postgresql_triggers'

if defined?(RSpec)
require 'rspec/version'
if RSpec::Version::STRING >= '2.11.0'
RSpec.configure do |config|
config.expect_with :rspec do |c|
c.syntax = :should
end
end
end
end

describe "PostgreSQL Triggers" do
before do
DB.create_language(:plpgsql) if DB.server_version < 90000
Expand Down

0 comments on commit d4c9c10

Please sign in to comment.