ole-qa-framework 2.7.3 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +15 -0
- data/lib/common/common_object.rb +1 -1
- data/lib/common/line_object.rb +35 -10
- data/lib/common/page.rb +5 -0
- data/lib/common/subline_object.rb +8 -24
- data/lib/module/qa_helpers.rb +1 -1
- data/lib/module/qa_page_helpers.rb +24 -0
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/lib/olefs/common/purap_document.rb +20 -25
- data/lib/olefs/objects/invoice_current_item.rb +1 -1
- data/lib/olefs/objects/invoice_line.rb +5 -2
- data/lib/olefs/objects/line_item.rb +44 -50
- data/lib/olefs/objects/receiving_line.rb +22 -52
- data/lib/olefs/pages/invoice.rb +5 -2
- data/lib/olefs/pages/payment_request.rb +0 -39
- data/lib/olefs/pages/purchase_order.rb +1 -11
- data/lib/olefs/pages/receiving_document.rb +1 -11
- data/lib/olefs/pages/requisition.rb +1 -11
- data/lib/olefs/subobjects/accounting_line.rb +16 -16
- data/lib/olefs/subobjects/copies_line.rb +9 -7
- data/lib/olefs/subobjects/exception_notes_line.rb +3 -3
- data/lib/olefs/{objects → subobjects}/invoice_line_item.rb +34 -45
- data/lib/olefs/subobjects/notes_line.rb +5 -5
- data/lib/olefs/subobjects/processing_line.rb +2 -2
- data/lib/olefs/subobjects/receipt_notes_line.rb +2 -2
- data/lib/olels/common/e_doc.rb +0 -17
- data/lib/olels/common/editor.rb +0 -17
- data/lib/olels/objects/access_info_line.rb +4 -4
- data/lib/olels/objects/control_006_line.rb +6 -6
- data/lib/olels/objects/control_007_line.rb +6 -6
- data/lib/olels/objects/data_line.rb +7 -7
- data/lib/olels/objects/editor_note.rb +3 -3
- data/lib/olels/objects/holdings_note.rb +5 -5
- data/lib/olels/objects/item_note.rb +5 -5
- data/lib/olels/objects/ownership_extent_line.rb +6 -16
- data/lib/olels/objects/patron_address_line.rb +33 -33
- data/lib/olels/objects/patron_email_line.rb +10 -10
- data/lib/olels/objects/patron_phone_line.rb +14 -14
- data/lib/olels/pages/bib_editor.rb +3 -44
- data/lib/olels/pages/instance_editor.rb +3 -33
- data/lib/olels/pages/item_editor.rb +1 -13
- data/lib/olels/pages/patron.rb +4 -33
- data/lib/olels/pages/return.rb +1 -0
- data/lib/olels/pages/staff_upload.rb +1 -0
- data/lib/olels/subobjects/ownership_note.rb +4 -4
- data/spec/common/line_object_spec.rb +41 -8
- data/spec/common/subline_object_spec.rb +9 -19
- data/spec/modules/qa_page_helpers_spec.rb +54 -0
- data/spec/olefs/accounting_line_spec.rb +9 -30
- data/spec/olefs/copies_line_spec.rb +1 -16
- data/spec/olefs/exception_notes_line_spec.rb +3 -13
- data/spec/olefs/invoice_current_item_spec.rb +1 -1
- data/spec/olefs/invoice_line_item_spec.rb +5 -5
- data/spec/olefs/invoice_line_spec.rb +2 -2
- data/spec/olefs/invoice_spec.rb +2 -2
- data/spec/olefs/line_item_spec.rb +32 -67
- data/spec/olefs/notes_line_spec.rb +5 -17
- data/spec/olefs/payment_request_spec.rb +1 -43
- data/spec/olefs/processing_line_spec.rb +5 -4
- data/spec/olefs/purap_document_spec.rb +23 -1
- data/spec/olefs/purchase_order_spec.rb +4 -18
- data/spec/olefs/receipt_notes_line_spec.rb +5 -14
- data/spec/olefs/receive_spec.rb +3 -18
- data/spec/olefs/receiving_line_spec.rb +35 -74
- data/spec/olefs/requisition_spec.rb +5 -19
- data/spec/olels/access_info_line_spec.rb +1 -1
- data/spec/olels/bib_editor_spec.rb +8 -56
- data/spec/olels/data_line_spec.rb +2 -2
- data/spec/olels/editor_spec.rb +0 -4
- data/spec/olels/{holdings_note_spec_spec.rb → holdings_note_spec.rb} +1 -1
- data/spec/olels/instance_editor_spec.rb +8 -31
- data/spec/olels/item_editor_spec.rb +4 -14
- data/spec/olels/item_note_spec.rb +2 -2
- data/spec/olels/ownership_extent_line_spec.rb +6 -16
- data/spec/olels/ownership_note_spec.rb +2 -1
- data/spec/olels/patron_address_line_spec.rb +1 -1
- data/spec/olels/patron_email_line_spec.rb +1 -1
- data/spec/olels/patron_phone_line_spec.rb +2 -2
- data/spec/olels/patron_spec.rb +8 -40
- metadata +7 -30
- data/lib/olefs/common/invoice_line_object.rb +0 -37
- data/lib/olefs/common/line_object.rb +0 -39
- data/lib/olefs/objects/new_line_item.rb +0 -48
- data/lib/olefs/objects/new_preq_line_item.rb +0 -43
- data/lib/olefs/objects/new_receiving_line.rb +0 -42
- data/lib/olefs/objects/preq_line_item.rb +0 -68
- data/lib/olefs/pages/payment_request_creation.rb +0 -44
- data/lib/olefs/subobjects/invoice_notes_line.rb +0 -25
- data/lib/olefs/subobjects/new_accounting_line.rb +0 -43
- data/lib/olefs/subobjects/new_copies_line.rb +0 -37
- data/lib/olefs/subobjects/new_exception_notes_line.rb +0 -30
- data/lib/olefs/subobjects/new_invoice_notes_line.rb +0 -35
- data/lib/olefs/subobjects/new_notes_line.rb +0 -36
- data/lib/olefs/subobjects/new_receipt_notes_line.rb +0 -35
- data/lib/olels/common/line_object.rb +0 -39
- data/spec/olefs/invoice_line_object_spec.rb +0 -49
- data/spec/olefs/invoice_notes_line_spec.rb +0 -49
- data/spec/olefs/preq_creation_spec.rb +0 -47
- data/spec/olefs/preq_line_item_spec.rb +0 -111
- data/spec/workflows/purap_spec.rb +0 -221
@@ -80,19 +80,7 @@ module OLE_QA::Framework::OLELS
|
|
80
80
|
|
81
81
|
# Create an item note line object.
|
82
82
|
def set_lines
|
83
|
-
|
83
|
+
set_line(:item_note, OLE_QA::Framework::OLELS::Item_Note)
|
84
84
|
end
|
85
|
-
|
86
|
-
# Add an item note line object.
|
87
|
-
def create_item_note(which = 1)
|
88
|
-
create_line("item_note_#{which}","Item_Note",which)
|
89
|
-
end
|
90
|
-
alias_method(:add_item_note,:create_item_note)
|
91
|
-
|
92
|
-
# Remove an item note line object.
|
93
|
-
def remove_item_note(which = 1)
|
94
|
-
remove_line("item_note_#{which}")
|
95
|
-
end
|
96
|
-
alias_method(:delete_item_note,:remove_item_note)
|
97
85
|
end
|
98
86
|
end
|
data/lib/olels/pages/patron.rb
CHANGED
@@ -23,11 +23,6 @@ module OLE_QA::Framework::OLELS
|
|
23
23
|
url = ole_session.url + 'ole-kr-krad/patronMaintenance?viewTypeName=MAINTENANCE&returnLocation='
|
24
24
|
url += ole_session.url + 'portal.do&methodToCall=start&dataObjectClassName=org.kuali.ole.deliver.bo.OlePatronDocument'
|
25
25
|
super(ole_session, url)
|
26
|
-
|
27
|
-
# Set up initial contact info lines, one of each.
|
28
|
-
add_address_line(1)
|
29
|
-
add_phone_line(1)
|
30
|
-
add_email_line(1)
|
31
26
|
end
|
32
27
|
|
33
28
|
# Define screen elements for patron record screen.
|
@@ -89,34 +84,10 @@ module OLE_QA::Framework::OLELS
|
|
89
84
|
end
|
90
85
|
end
|
91
86
|
|
92
|
-
def
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
def create_phone_line(which = 1)
|
98
|
-
create_line("phone_line_#{which}","Patron_Phone_Line", which)
|
99
|
-
end
|
100
|
-
alias_method(:add_phone_line, :create_phone_line)
|
101
|
-
|
102
|
-
def create_email_line(which = 1)
|
103
|
-
create_line("email_line_#{which}","Patron_Email_Line", which)
|
104
|
-
end
|
105
|
-
alias_method(:add_email_line, :create_email_line)
|
106
|
-
|
107
|
-
def remove_address_line(which = 1)
|
108
|
-
remove_line("address_line_#{which}")
|
109
|
-
end
|
110
|
-
alias_method(:delete_address_line, :remove_address_line)
|
111
|
-
|
112
|
-
def remove_phone_line(which = 1)
|
113
|
-
remove_line("phone_line_#{which}")
|
114
|
-
end
|
115
|
-
alias_method(:delete_phone_line, :remove_phone_line)
|
116
|
-
|
117
|
-
def remove_email_line(which = 1)
|
118
|
-
remove_line("email_line_#{which}")
|
87
|
+
def set_lines
|
88
|
+
set_line(:address_line, OLE_QA::Framework::OLELS::Patron_Address_Line)
|
89
|
+
set_line(:phone_line, OLE_QA::Framework::OLELS::Patron_Phone_Line)
|
90
|
+
set_line(:email_line, OLE_QA::Framework::OLELS::Patron_Email_Line)
|
119
91
|
end
|
120
|
-
alias_method(:delete_email_line, :remove_email_line)
|
121
92
|
end
|
122
93
|
end
|
data/lib/olels/pages/return.rb
CHANGED
@@ -23,6 +23,7 @@ module OLE_QA::Framework::OLELS
|
|
23
23
|
|
24
24
|
# Set elements for return page.
|
25
25
|
def set_elements
|
26
|
+
super
|
26
27
|
# General Elements
|
27
28
|
element(:loan_button) {b.button(:id => 'LoanScreenLinkView-buttons')}
|
28
29
|
element(:end_session_button) {b.button(:id => 'endSessionButton')}
|
@@ -24,6 +24,7 @@ module OLE_QA::Framework::OLELS
|
|
24
24
|
|
25
25
|
# Set elements for Staff upload screen.
|
26
26
|
def set_elements
|
27
|
+
super
|
27
28
|
element(:title) {browser.h1(:class => 'uif-headerText').span}
|
28
29
|
element(:marc_field) {browser.input(:id => "StaffUploadView-marcFileUpload_control").to_subtype}
|
29
30
|
element(:edi_field) {browser.input(:id => "StaffUploadView-ediFileUpload_control").to_subtype}
|
@@ -17,10 +17,10 @@ module OLE_QA::Framework::OLELS
|
|
17
17
|
class Ownership_Note < OLE_QA::Framework::Subline_Object
|
18
18
|
# Set ownership note screen elements.
|
19
19
|
def set_elements
|
20
|
-
element(:note_type_selector) {b.select_list(:id => "extentSubHoldingNoteTypeField_line#{@line_id}_line#{
|
21
|
-
element(:note_field) {b.text_field(:id => "extentSubHoldingNoteDescField_line#{@line_id}_line#{
|
22
|
-
element(:add_button) {b.button(:id => "oleEowHoldingNotes_addTagButton_line#{@line_id}_line#{
|
23
|
-
element(:remove_button) {b.button(:id => "oleEowHoldingNotes_removeTagButton_line#{@line_id}_line#{
|
20
|
+
element(:note_type_selector) {b.select_list(:id => "extentSubHoldingNoteTypeField_line#{@parent_line.line_id}_line#{line_id}_control")}
|
21
|
+
element(:note_field) {b.text_field(:id => "extentSubHoldingNoteDescField_line#{@parent_line.line_id}_line#{line_id}_control")}
|
22
|
+
element(:add_button) {b.button(:id => "oleEowHoldingNotes_addTagButton_line#{@parent_line.line_id}_line#{line_id}")}
|
23
|
+
element(:remove_button) {b.button(:id => "oleEowHoldingNotes_removeTagButton_line#{@parent_line.line_id}_line#{line_id}")}
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -20,19 +20,20 @@ describe 'A Line Object' do
|
|
20
20
|
|
21
21
|
before :all do
|
22
22
|
@ole = OLE_QA::Framework::Session.new
|
23
|
-
|
23
|
+
class TestLine < OLE_QA::Framework::Line_Object
|
24
|
+
def set_sublines
|
25
|
+
subline(:test_subline, OLE_QA::Framework::Subline_Object)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
@line_object = TestLine.new(@ole, 1)
|
24
29
|
end
|
25
30
|
|
26
31
|
after :all do
|
27
32
|
@ole.quit
|
28
33
|
end
|
29
34
|
|
30
|
-
it 'should create a new instance' do
|
31
|
-
@line_object.class.should == OLE_QA::Framework::Line_Object
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should be a subclass of data object' do
|
35
|
-
@line_object.class.superclass.should == OLE_QA::Framework::Data_Object
|
35
|
+
it 'should create a new instance of line object' do
|
36
|
+
@line_object.class.superclass.should == OLE_QA::Framework::Line_Object
|
36
37
|
end
|
37
38
|
|
38
39
|
it 'should have a browser accessor' do
|
@@ -43,7 +44,39 @@ describe 'A Line Object' do
|
|
43
44
|
@line_object.line_number.should == 1
|
44
45
|
end
|
45
46
|
|
46
|
-
it 'should have a line
|
47
|
+
it 'should have a line ID' do
|
47
48
|
@line_object.line_id.should == 0
|
48
49
|
end
|
50
|
+
|
51
|
+
it 'should allow the line number to be set dynamically' do
|
52
|
+
@line_object.line_number = 2
|
53
|
+
@line_object.line_number.should == 2
|
54
|
+
end
|
55
|
+
|
56
|
+
it 'should redefine the line ID to one less than the line number' do
|
57
|
+
@line_object.line_id.should == 1
|
58
|
+
end
|
59
|
+
|
60
|
+
it 'should start with a test subline defined automagically' do
|
61
|
+
@line_object.methods.include?(:test_subline).should be_true
|
62
|
+
@line_object.test_subline.should be_an_instance_of(OLE_QA::Framework::Subline_Object)
|
63
|
+
end
|
64
|
+
|
65
|
+
it 'should have that subline listed in the sublines reader attribute' do
|
66
|
+
@line_object.sublines.include?(:test_subline).should be_true
|
67
|
+
end
|
68
|
+
|
69
|
+
it 'should allow a subline to be set dynamically' do
|
70
|
+
@line_object.set_subline(:test_subline_2, OLE_QA::Framework::Subline_Object)
|
71
|
+
@line_object.methods.include?(:test_subline_2).should be_true
|
72
|
+
@line_object.test_subline_2.should be_an_instance_of(OLE_QA::Framework::Subline_Object)
|
73
|
+
end
|
74
|
+
|
75
|
+
it 'should add that subline object to the sublines reader attribute' do
|
76
|
+
@line_object.sublines.include?(:test_subline_2).should be_true
|
77
|
+
end
|
78
|
+
|
79
|
+
it 'should not define a subline object which already exists' do
|
80
|
+
lambda {@line_object.set_subline(:test_subline)}.should raise_error
|
81
|
+
end
|
49
82
|
end
|
@@ -19,9 +19,8 @@ describe 'A Subline Object' do
|
|
19
19
|
|
20
20
|
before :all do
|
21
21
|
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@
|
23
|
-
@
|
24
|
-
@subline = OLE_QA::Framework::Subline_Object.new(@ole, @line_num, @subline_num)
|
22
|
+
@line = OLE_QA::Framework::Line_Object.new(@ole, 1)
|
23
|
+
@subline = OLE_QA::Framework::Subline_Object.new(@ole, @line, 1)
|
25
24
|
end
|
26
25
|
|
27
26
|
after :all do
|
@@ -30,25 +29,16 @@ describe 'A Subline Object' do
|
|
30
29
|
|
31
30
|
it 'should create a new instance' do
|
32
31
|
@subline.class.should == OLE_QA::Framework::Subline_Object
|
32
|
+
@subline.class.superclass.should == OLE_QA::Framework::Line_Object
|
33
33
|
end
|
34
34
|
|
35
|
-
it 'should
|
36
|
-
@subline.
|
35
|
+
it 'should have its parent line object in the parent line reader attribute' do
|
36
|
+
@subline.parent_line.should == @line
|
37
37
|
end
|
38
38
|
|
39
|
-
it 'should have
|
40
|
-
@subline.line_number
|
41
|
-
|
42
|
-
|
43
|
-
it 'should have a line id' do
|
44
|
-
@subline.line_id.should == 0
|
45
|
-
end
|
46
|
-
|
47
|
-
it 'should have a subline number' do
|
48
|
-
@subline.subline_number.should == 1
|
49
|
-
end
|
50
|
-
|
51
|
-
it 'should have a subline id' do
|
52
|
-
@subline.subline_id.should == 0
|
39
|
+
it 'should have access to parent line methods' do
|
40
|
+
@subline.parent_line.line_number = 2
|
41
|
+
@line.line_number.should == 2
|
42
|
+
@line.line_id.should == 1
|
53
43
|
end
|
54
44
|
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# Copyright 2005-2013 The Kuali Foundation
|
2
|
+
#
|
3
|
+
# Licensed under the Educational Community License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at:
|
6
|
+
#
|
7
|
+
# http://www.opensource.org/licenses/ecl2.php
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'rspec'
|
16
|
+
require 'spec_helper'
|
17
|
+
|
18
|
+
describe 'The Page Helpers module' do
|
19
|
+
|
20
|
+
before :all do
|
21
|
+
@ole = OLE_QA::Framework::Session.new
|
22
|
+
|
23
|
+
class TestPage < OLE_QA::Framework::Page
|
24
|
+
def set_lines
|
25
|
+
set_line(:line_object, OLE_QA::Framework::Line_Object)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
@test_page = TestPage.new(@ole, @ole.url)
|
30
|
+
end
|
31
|
+
|
32
|
+
after :all do
|
33
|
+
@ole.quit
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'should create a page instance with a line object already declared' do
|
37
|
+
@test_page.methods.include?(:line_object).should be_true
|
38
|
+
@test_page.line_object.class.should == OLE_QA::Framework::Line_Object
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'should have the line object listed in the lines accessor' do
|
42
|
+
@test_page.lines.include?(:line_object).should be_true
|
43
|
+
end
|
44
|
+
|
45
|
+
it 'should define a line object dynamically' do
|
46
|
+
@test_page.set_line(:addl_line_object, OLE_QA::Framework::Line_Object)
|
47
|
+
@test_page.lines.include?(:addl_line_object).should be_true
|
48
|
+
@test_page.addl_line_object.should be_an_instance_of(OLE_QA::Framework::Line_Object)
|
49
|
+
end
|
50
|
+
|
51
|
+
it 'should not set a line object which has already been defined' do
|
52
|
+
lambda {@test_page.set_line(:addl_line_object)}.should raise_error
|
53
|
+
end
|
54
|
+
end
|
@@ -20,7 +20,6 @@ describe 'An accounting line' do
|
|
20
20
|
before :all do
|
21
21
|
@ole = OLE_QA::Framework::Session.new
|
22
22
|
@accounting_line = OLE_QA::Framework::OLEFS::Accounting_Line.new(@ole, 1, 1)
|
23
|
-
@new_accounting_line = OLE_QA::Framework::OLEFS::New_Accounting_Line.new(@ole, 1, 0)
|
24
23
|
end
|
25
24
|
|
26
25
|
after :all do
|
@@ -29,49 +28,22 @@ describe 'An accounting line' do
|
|
29
28
|
|
30
29
|
it 'should create a new instance' do
|
31
30
|
@accounting_line.class.should == OLE_QA::Framework::OLEFS::Accounting_Line
|
32
|
-
@new_accounting_line.class.should == OLE_QA::Framework::OLEFS::New_Accounting_Line
|
33
31
|
end
|
34
32
|
|
35
33
|
it 'should be a subclass of subline object' do
|
36
34
|
@accounting_line.class.superclass.should == OLE_QA::Framework::Subline_Object
|
37
|
-
@new_accounting_line.class.superclass.should == OLE_QA::Framework::Subline_Object
|
38
35
|
end
|
39
36
|
|
40
37
|
it 'should have a browser accessor' do
|
41
38
|
@accounting_line.browser.class.should == @ole.browser.class
|
42
|
-
@new_accounting_line.browser.class.should == @ole.browser.class
|
43
39
|
end
|
44
40
|
|
45
41
|
it 'should have line number attributes' do
|
46
42
|
@accounting_line.line_number.should == 1
|
47
|
-
@accounting_line.subline_number.should == 1
|
48
|
-
@new_accounting_line.line_number.should == 1
|
49
|
-
@new_accounting_line.subline_number.should == 0
|
50
43
|
end
|
51
44
|
|
52
45
|
it 'should have accounting line elements' do
|
53
|
-
|
54
|
-
methods_array.include?(:account_number_field).should be_true
|
55
|
-
methods_array.include?(:sub_account_number_field).should be_true
|
56
|
-
methods_array.include?(:object_field).should be_true
|
57
|
-
methods_array.include?(:sub_object_field).should be_true
|
58
|
-
methods_array.include?(:project_field).should be_true
|
59
|
-
methods_array.include?(:org_ref_id_field).should be_true
|
60
|
-
methods_array.include?(:dollar_field).should be_true
|
61
|
-
methods_array.include?(:percent_field).should be_true
|
62
|
-
methods_array.include?(:chart_selector).should be_true
|
63
|
-
methods_array.include?(:delete_button).should be_true
|
64
|
-
methods_array.include?(:balance_inquiry_button).should be_true
|
65
|
-
methods_array.include?(:closed_chart_field).should be_true
|
66
|
-
methods_array.include?(:closed_account_number_field).should be_true
|
67
|
-
methods_array.include?(:closed_object_field).should be_true
|
68
|
-
methods_array.include?(:closed_dollar_field).should be_true
|
69
|
-
methods_array.include?(:closed_percent_field).should be_true
|
70
|
-
end
|
71
|
-
|
72
|
-
it 'should have new accounting line elements' do
|
73
|
-
methods = @new_accounting_line.methods
|
74
|
-
methods.include?(:chart_selector).should be_true
|
46
|
+
methods = @accounting_line.methods
|
75
47
|
methods.include?(:account_number_field).should be_true
|
76
48
|
methods.include?(:sub_account_number_field).should be_true
|
77
49
|
methods.include?(:object_field).should be_true
|
@@ -80,6 +52,13 @@ describe 'An accounting line' do
|
|
80
52
|
methods.include?(:org_ref_id_field).should be_true
|
81
53
|
methods.include?(:dollar_field).should be_true
|
82
54
|
methods.include?(:percent_field).should be_true
|
83
|
-
methods.include?(:
|
55
|
+
methods.include?(:chart_selector).should be_true
|
56
|
+
methods.include?(:delete_button).should be_true
|
57
|
+
methods.include?(:balance_inquiry_button).should be_true
|
58
|
+
methods.include?(:closed_chart_field).should be_true
|
59
|
+
methods.include?(:closed_account_number_field).should be_true
|
60
|
+
methods.include?(:closed_object_field).should be_true
|
61
|
+
methods.include?(:closed_dollar_field).should be_true
|
62
|
+
methods.include?(:closed_percent_field).should be_true
|
84
63
|
end
|
85
64
|
end
|
@@ -19,8 +19,7 @@ describe 'A copies line' do
|
|
19
19
|
|
20
20
|
before :all do
|
21
21
|
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@copies_line = OLE_QA::Framework::OLEFS::Copies_Line.new(@ole, 1
|
23
|
-
@new_copies_line = OLE_QA::Framework::OLEFS::New_Copies_Line.new(@ole, 1, 0)
|
22
|
+
@copies_line = OLE_QA::Framework::OLEFS::Copies_Line.new(@ole, 1)
|
24
23
|
end
|
25
24
|
|
26
25
|
after :all do
|
@@ -29,24 +28,18 @@ describe 'A copies line' do
|
|
29
28
|
|
30
29
|
it 'should create a new instance' do
|
31
30
|
@copies_line.class.should == OLE_QA::Framework::OLEFS::Copies_Line
|
32
|
-
@new_copies_line.class.should == OLE_QA::Framework::OLEFS::New_Copies_Line
|
33
31
|
end
|
34
32
|
|
35
33
|
it 'should be a subclass of subline object' do
|
36
34
|
@copies_line.class.superclass.should == OLE_QA::Framework::Subline_Object
|
37
|
-
@new_copies_line.class.superclass.should == OLE_QA::Framework::Subline_Object
|
38
35
|
end
|
39
36
|
|
40
37
|
it 'should have a browser accessor' do
|
41
38
|
@copies_line.browser.class.should == @ole.browser.class
|
42
|
-
@new_copies_line.browser.class.should == @ole.browser.class
|
43
39
|
end
|
44
40
|
|
45
41
|
it 'should have line number methods' do
|
46
42
|
@copies_line.line_number.should == 1
|
47
|
-
@copies_line.subline_number.should == 1
|
48
|
-
@new_copies_line.line_number.should == 1
|
49
|
-
@new_copies_line.subline_number.should == 0
|
50
43
|
end
|
51
44
|
|
52
45
|
it 'should have copies line elements' do
|
@@ -59,12 +52,4 @@ describe 'A copies line' do
|
|
59
52
|
methods.include?(:closed_part_enumeration_field).should be_true
|
60
53
|
methods.include?(:closed_starting_copy_field).should be_true
|
61
54
|
end
|
62
|
-
|
63
|
-
it 'should have new copies line elements' do
|
64
|
-
methods = @new_copies_line.methods
|
65
|
-
methods.include?(:copies_field).should be_true
|
66
|
-
methods.include?(:location_copies_selector).should be_true
|
67
|
-
methods.include?(:starting_copy_field).should be_true
|
68
|
-
methods.include?(:add_button).should be_true
|
69
|
-
end
|
70
55
|
end
|
@@ -20,8 +20,8 @@ describe 'An OLEFS Exception Notes Line object' do
|
|
20
20
|
before :all do
|
21
21
|
@ole = OLE_QA::Framework::Session.new
|
22
22
|
@browser = @ole.browser
|
23
|
-
@
|
24
|
-
@
|
23
|
+
@rcv_line = OLE_QA::Framework::OLEFS::Receiving_Line.new(@ole, 1)
|
24
|
+
@exception_notes_line = OLE_QA::Framework::OLEFS::Exception_Notes_Line.new(@ole, @rcv_line, 1)
|
25
25
|
end
|
26
26
|
|
27
27
|
after :all do
|
@@ -31,24 +31,14 @@ describe 'An OLEFS Exception Notes Line object' do
|
|
31
31
|
it 'should create a new instance' do
|
32
32
|
@exception_notes_line.class.should == OLE_QA::Framework::OLEFS::Exception_Notes_Line
|
33
33
|
@exception_notes_line.class.superclass.should == OLE_QA::Framework::Subline_Object
|
34
|
-
@new_exception_notes_line.class.should == OLE_QA::Framework::OLEFS::New_Exception_Notes_Line
|
35
|
-
@new_exception_notes_line.class.superclass.should == OLE_QA::Framework::Subline_Object
|
36
34
|
end
|
37
35
|
|
38
36
|
it 'should have a browser accessor' do
|
39
37
|
@exception_notes_line.browser.class.should == @ole.browser.class
|
40
|
-
@new_exception_notes_line.browser.class.should == @ole.browser.class
|
41
38
|
end
|
42
39
|
|
43
40
|
it 'should have exception notes elements' do
|
44
|
-
|
45
|
-
methods.include?(:exception_type_selector).should be_true
|
46
|
-
methods.include?(:note_field).should be_true
|
47
|
-
methods.include?(:note_type_selector).should be_true
|
48
|
-
end
|
49
|
-
|
50
|
-
it 'should have new exception notes elements' do
|
51
|
-
elements = @new_exception_notes_line.methods
|
41
|
+
elements = @exception_notes_line.elements
|
52
42
|
elements.include?(:exception_type_selector).should be_true
|
53
43
|
elements.include?(:note_field).should be_true
|
54
44
|
elements.include?(:note_type_selector).should be_true
|
@@ -28,7 +28,7 @@ describe 'An OLEFS Invoice Current Item line' do
|
|
28
28
|
|
29
29
|
it 'should create a new instance' do
|
30
30
|
@line_object.class.should == OLE_QA::Framework::OLEFS::Invoice_Current_Item
|
31
|
-
@line_object.class.superclass.should == OLE_QA::Framework::
|
31
|
+
@line_object.class.superclass.should == OLE_QA::Framework::Line_Object
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should have current item elements' do
|
@@ -19,8 +19,8 @@ describe 'A PO Line Item on an OLE Invoice' do
|
|
19
19
|
|
20
20
|
before :all do
|
21
21
|
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@
|
23
|
-
@line_item = OLE_QA::Framework::OLEFS::Invoice_Line_Item.new(@ole, @
|
22
|
+
@parent_line = OLE_QA::Framework::OLEFS::Invoice_Line.new(@ole, 1)
|
23
|
+
@line_item = OLE_QA::Framework::OLEFS::Invoice_Line_Item.new(@ole, @parent_line, 1)
|
24
24
|
end
|
25
25
|
|
26
26
|
after :all do
|
@@ -29,12 +29,12 @@ describe 'A PO Line Item on an OLE Invoice' do
|
|
29
29
|
|
30
30
|
it 'should create a new instance' do
|
31
31
|
@line_item.class.should == OLE_QA::Framework::OLEFS::Invoice_Line_Item
|
32
|
-
@line_item.class.superclass.should == OLE_QA::Framework::
|
32
|
+
@line_item.class.superclass.should == OLE_QA::Framework::Subline_Object
|
33
33
|
end
|
34
34
|
|
35
35
|
it 'should have access to the line_number and line_id methods on the PO Line' do
|
36
|
-
@line_item.
|
37
|
-
@line_item.
|
36
|
+
@line_item.parent_line.line_number.should == 1
|
37
|
+
@line_item.parent_line.line_id.should == 0
|
38
38
|
end
|
39
39
|
|
40
40
|
it 'should have line item elements' do
|