Commits

Lars Kanis  committed 451ee7c

Skip some tests that do not run on PostgreSQL<9.0

  • Participants
  • Parent commits 5edc4ca

Comments (0)

Files changed (1)

File spec/pg/connection_spec.rb

 				escaped.encoding.should == Encoding::EUC_JP
 			end
 
-			it "escapes string as literal" do
+			it "escapes string as literal", :postgresql_90 do
 				original = "string to\0 escape"
 				escaped  = @conn.escape_literal( original )
 				escaped.should == "'string to'"
 			conn.finish if conn
 		end
 
-		it "receives properly encoded messages in the notice callbacks" do
+		it "receives properly encoded messages in the notice callbacks", :postgresql_90 do
 			[:receiver, :processor].each do |kind|
 				notices = []
 				@conn.internal_encoding = 'utf-8'
 			end
 		end
 
-		it "receives properly encoded text from wait_for_notify" do
+		it "receives properly encoded text from wait_for_notify", :postgresql_90 do
 			@conn.internal_encoding = 'utf-8'
 			@conn.exec( 'ROLLBACK' )
 			@conn.exec( 'LISTEN "Möhre"' )
 			msg.encoding.should == Encoding::UTF_8
 		end
 
-		it "returns properly encoded text from notifies" do
+		it "returns properly encoded text from notifies", :postgresql_90 do
 			@conn.internal_encoding = 'utf-8'
 			@conn.exec( 'ROLLBACK' )
 			@conn.exec( 'LISTEN "Möhre"' )