File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
spec/active_record/connection_adapters Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -301,5 +301,8 @@ RSpec/EmptyLineAfterSubject:
301301RSpec/ExcessiveDocstringSpacing :
302302 Enabled : true
303303
304+ RSpec/RepeatedDescription :
305+ Enabled : true
306+
304307RSpec/RepeatedExample :
305308 Enabled : true
Original file line number Diff line number Diff line change 4747 expect ( @logger . output ( :debug ) ) . not_to match ( /^DBMS_OUTPUT/ )
4848 end
4949
50- it "should log dbms output lines to the rails log" do
50+ it "should log dbms output longer lines to the rails log" do
5151 @conn . enable_dbms_output
5252
5353 expect ( @conn . select_all ( "select more_than_five_characters_long('hi there') is_it_long from dual" ) . to_a ) . to eq ( [ { "is_it_long" => 1 } ] )
5757 expect ( @logger . output ( :debug ) ) . to match ( /^DBMS_OUTPUT: about to return: 1$/ )
5858 end
5959
60- it "should log dbms output lines to the rails log" do
60+ it "should log dbms output shorter lines to the rails log" do
6161 @conn . enable_dbms_output
6262
6363 expect ( @conn . select_all ( "select more_than_five_characters_long('short') is_it_long from dual" ) . to_a ) . to eq ( [ { "is_it_long" => 0 } ] )
Original file line number Diff line number Diff line change @@ -881,15 +881,15 @@ class ::TestPost < ActiveRecord::Base; end
881881 expect ( TestPost . columns_hash [ "a" * 128 ] ) . not_to be_nil
882882 end
883883
884- it "should add lob column with non_default tablespace" do
884+ it "should add text type lob column with non_default tablespace" do
885885 ActiveRecord ::ConnectionAdapters ::OracleEnhancedAdapter . default_tablespaces [ :clob ] = DATABASE_NON_DEFAULT_TABLESPACE
886886 schema_define do
887887 add_column :test_posts , :body , :text
888888 end
889889 expect ( TestPost . connection . select_value ( "SELECT tablespace_name FROM user_lobs WHERE table_name='TEST_POSTS' and column_name = 'BODY'" ) ) . to eq ( DATABASE_NON_DEFAULT_TABLESPACE )
890890 end
891891
892- it "should add lob column with non_default tablespace" do
892+ it "should add ntext type lob column with non_default tablespace" do
893893 ActiveRecord ::ConnectionAdapters ::OracleEnhancedAdapter . default_tablespaces [ :nclob ] = DATABASE_NON_DEFAULT_TABLESPACE
894894 schema_define do
895895 add_column :test_posts , :body , :ntext
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class ::TestEmployee2 < ActiveRecord::Base
8383 expect ( @logger . logged ( :debug ) . last ) . to match ( /select .* from all_constraints/im )
8484 end
8585
86- it "should get primary key from database at first time" do
86+ it "should get primary key from database at second time without query " do
8787 expect ( TestEmployee . connection . pk_and_sequence_for ( "test_employees" ) ) . to eq ( [ "id" , "test_employees_seq" ] )
8888 @logger . clear ( :debug )
8989 expect ( TestEmployee . connection . pk_and_sequence_for ( "test_employees" ) ) . to eq ( [ "id" , "test_employees_seq" ] )
You can’t perform that action at this time.
0 commit comments