Sha256: 1321e965d02d21221f4aaa991499413e124495c00ff8fc92898e56f48b18f639
Contents?: true
Size: 1.67 KB
Versions: 1
Compression:
Stored size: 1.67 KB
Contents
describe "Oracle E-Business Suite" do before(:all) do # @old_connection = plsql.connection # plsql.connect! "APPS", "APPS", "VIS" @user_name = "OPERATIONS" @responsibility_name = "System Administrator" end after(:all) do # plsql.connection = @old_connection end if plsql.schema_name == 'APPS' describe "Session initialization" do it "should initialize session with valid user and responsibility" do expect { init_ebs_user(:user_name => @user_name, :responsibility_name => @responsibility_name) }.not_to raise_error end it "should raise error with invalid user" do expect { init_ebs_user(:user_name => "INVALID", :responsibility_name => @responsibility_name) }.to raise_error(/Wrong user name or responsibility name/) end it "should raise error with invalid responsibility" do expect { init_ebs_user(:user_name => @user_name, :responsibility_name => "INVALID") }.to raise_error(/Wrong user name or responsibility name/) end it "should raise error with default username and responsibility parameters" do expect { init_ebs_user }.to raise_error(/Wrong user name or responsibility name/) end end describe "Session information" do before(:all) do init_ebs_user(:user_name => @user_name, :responsibility_name => @responsibility_name) end it "should return user name" do expect(plsql.fnd_global.user_name).to eq @user_name end it "should return responsibility name" do expect(plsql.fnd_global.resp_name).to eq @responsibility_name end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-plsql-spec-0.5.0 | examples/spec/oracle_ebs_spec.rb |