Sha256: f75b891aae2b5de538dc8113230538237fb8b1616a8fe14b30c229d2e113b3e1

Contents?: true

Size: 588 Bytes

Versions: 3

Compression:

Stored size: 588 Bytes

Contents

require 'test_helper'

class Rails3PgDeferredConstraintsTest < ActiveSupport::TestCase

  def run_dummy_test
    %x( cd test/dummy; ruby  ./test/unit/book_test.rb 2>&1 )
  end


  test "dummy tests fail without rails3_pg_deferred_constraints egine" do
    output = run_dummy_test
    ENV['PG_DEFERRED_CONSTRAINTS'] = nil
    assert(output =~ /RI_ConstraintTrigger_/)
  end

  test "dummy tests pass if the rails3_pg_deferred_constraints egine is loaded" do
    ENV['PG_DEFERRED_CONSTRAINTS'] = 'true'
    output = run_dummy_test
    assert !(output =~ /RI_ConstraintTrigger_/)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails3_pg_deferred_constraints-0.0.4 test/rails3_pg_deferred_constraints_test.rb
rails3_pg_deferred_constraints-0.0.3 test/rails3_pg_deferred_constraints_test.rb
rails3_pg_deferred_constraints-0.0.2 test/rails3_pg_deferred_constraints_test.rb