Skip to content

Commit

Permalink
Merge pull request #180 from yahonda/address_issue_179_rails4
Browse files Browse the repository at this point in the history
rails4: Address 3 failures after #173 merged.
  • Loading branch information
ebeigarts committed Jun 6, 2012
2 parents 214a496 + 99ecb52 commit 164a228
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -42,15 +42,15 @@
it "should NOT log dbms output when dbms output is disabled" do
@conn.disable_dbms_output

@conn.select_all("select more_than_five_characters_long('hi there') is_it_long from dual").should == [{'is_it_long'=>1}]
@conn.select_all("select more_than_five_characters_long('hi there') is_it_long from dual").to_a.should == [{'is_it_long'=>1}]

@logger.output(:debug).should_not match(/^DBMS_OUTPUT/)
end

it "should log dbms output lines to the rails log" do
@conn.enable_dbms_output

@conn.select_all("select more_than_five_characters_long('hi there') is_it_long from dual").should == [{'is_it_long'=>1}]
@conn.select_all("select more_than_five_characters_long('hi there') is_it_long from dual").to_a.should == [{'is_it_long'=>1}]

@logger.output(:debug).should match(/^DBMS_OUTPUT: before the if -hi there-$/)
@logger.output(:debug).should match(/^DBMS_OUTPUT: it is longer than 5$/)
Expand All @@ -60,7 +60,7 @@
it "should log dbms output lines to the rails log" do
@conn.enable_dbms_output

@conn.select_all("select more_than_five_characters_long('short') is_it_long from dual").should == [{'is_it_long'=>0}]
@conn.select_all("select more_than_five_characters_long('short') is_it_long from dual").to_a.should == [{'is_it_long'=>0}]

@logger.output(:debug).should match(/^DBMS_OUTPUT: before the if -short-$/)
@logger.output(:debug).should match(/^DBMS_OUTPUT: it is 5 or shorter$/)
Expand Down

0 comments on commit 164a228

Please sign in to comment.