examples/spec/betwnstr_spec.rb in ruby-plsql-spec-0.4.0 vs examples/spec/betwnstr_spec.rb in ruby-plsql-spec-0.5.0

- old
+ new

@@ -1,24 +1,22 @@ -require 'spec_helper' - # load 'betwnstr' procedure into the database require "betwnstr" describe "Between string" do it "should be correct in normal case" do - plsql.betwnstr('abcdefg', 2, 5).should == 'bcde' + expect(plsql.betwnstr('abcdefg', 2, 5)).to eq 'bcde' end it "should be correct with zero start value" do - plsql.betwnstr('abcdefg', 0, 5).should == 'abcde' + expect(plsql.betwnstr('abcdefg', 0, 5)).to eq 'abcde' end it "should be correct with way big end value" do - plsql.betwnstr('abcdefg', 5, 500).should == 'efg' + expect(plsql.betwnstr('abcdefg', 5, 500)).to eq 'efg' end it "should be correct with NULL string" do - plsql.betwnstr(NULL, 5, 500).should == NULL + expect(plsql.betwnstr(NULL, 5, 500)).to eq NULL end end