ole-qa-framework 3.1.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +14 -1
- data/lib/common/page.rb +3 -0
- data/lib/ole_qa_framework/VERSION.rb +1 -1
- data/lib/olels/common/batch_profile.rb +53 -0
- data/lib/olels/objects/batch_data_mapping_line.rb +41 -0
- data/lib/olels/objects/batch_delete_field_line.rb +26 -0
- data/lib/olels/objects/batch_rename_field_line.rb +32 -0
- data/lib/olels/objects/export_filter_line.rb +28 -0
- data/lib/olels/objects/import_defaults_line.rb +27 -0
- data/{spec/olels/main_menu_spec.rb → lib/olels/objects/import_match_line.rb} +7 -19
- data/lib/olels/objects/import_pf_line.rb +27 -0
- data/lib/olels/pages/batch_export_profile.rb +82 -0
- data/lib/olels/pages/batch_import_profile.rb +136 -0
- data/lib/olels/pages/batch_job_details.rb +48 -0
- data/lib/olels/pages/batch_process.rb +47 -0
- data/lib/olels/pages/batch_profile_lookup.rb +56 -0
- data/lib/olels/pages/batch_type_lookup.rb +52 -0
- data/spec/common/page_spec.rb +30 -1
- data/spec/modules/qa_page_helpers_spec.rb +1 -1
- metadata +16 -98
- data/spec/olefs/accounting_line_spec.rb +0 -64
- data/spec/olefs/building_lookup_spec.rb +0 -45
- data/spec/olefs/copies_line_spec.rb +0 -56
- data/spec/olefs/edocs_spec.rb +0 -75
- data/spec/olefs/exception_notes_line_spec.rb +0 -46
- data/spec/olefs/invoice_current_item_spec.rb +0 -48
- data/spec/olefs/invoice_line_item_spec.rb +0 -80
- data/spec/olefs/invoice_line_spec.rb +0 -64
- data/spec/olefs/invoice_spec.rb +0 -91
- data/spec/olefs/line_item_spec.rb +0 -129
- data/spec/olefs/load_report_spec.rb +0 -56
- data/spec/olefs/load_summary_lookup_spec.rb +0 -53
- data/spec/olefs/lookup_spec.rb +0 -50
- data/spec/olefs/main_menu_spec.rb +0 -34
- data/spec/olefs/notes_line_spec.rb +0 -53
- data/spec/olefs/payment_request_spec.rb +0 -43
- data/spec/olefs/processing_line_spec.rb +0 -45
- data/spec/olefs/purap_document_spec.rb +0 -80
- data/spec/olefs/purchase_order_spec.rb +0 -63
- data/spec/olefs/receipt_notes_line_spec.rb +0 -45
- data/spec/olefs/receive_spec.rb +0 -51
- data/spec/olefs/receiving_line_spec.rb +0 -87
- data/spec/olefs/requisition_spec.rb +0 -71
- data/spec/olefs/vendor_lookup_spec.rb +0 -49
- data/spec/olels/access_info_line_spec.rb +0 -40
- data/spec/olels/bib_editor_spec.rb +0 -87
- data/spec/olels/control_006_line_spec.rb +0 -41
- data/spec/olels/control_007_line_spec.rb +0 -41
- data/spec/olels/data_line_spec.rb +0 -44
- data/spec/olels/describe_workbench_spec.rb +0 -75
- data/spec/olels/editor_spec.rb +0 -68
- data/spec/olels/edocs_spec.rb +0 -50
- data/spec/olels/holdings_note_spec.rb +0 -41
- data/spec/olels/instance_editor_spec.rb +0 -73
- data/spec/olels/item_editor_spec.rb +0 -96
- data/spec/olels/item_note_spec.rb +0 -41
- data/spec/olels/loan_spec.rb +0 -104
- data/spec/olels/lookup_spec.rb +0 -38
- data/spec/olels/ownership_extent_line_spec.rb +0 -48
- data/spec/olels/ownership_note_spec.rb +0 -42
- data/spec/olels/patron_address_line_spec.rb +0 -55
- data/spec/olels/patron_email_line_spec.rb +0 -44
- data/spec/olels/patron_lookup_spec.rb +0 -54
- data/spec/olels/patron_phone_line_spec.rb +0 -47
- data/spec/olels/patron_spec.rb +0 -93
- data/spec/olels/return_spec.rb +0 -72
- data/spec/olels/staff_upload_spec.rb +0 -55
@@ -1,40 +0,0 @@
|
|
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 'An OLELS Access Info Line object' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@access_info = OLE_QA::Framework::OLELS::Access_Info_Line.new(@ole,1)
|
23
|
-
end
|
24
|
-
|
25
|
-
after :all do
|
26
|
-
@ole.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should create a new instance' do
|
30
|
-
@access_info.class.should == OLE_QA::Framework::OLELS::Access_Info_Line
|
31
|
-
@access_info.class.superclass.should == OLE_QA::Framework::Line_Object
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should have access info elements' do
|
35
|
-
elements = @access_info.methods
|
36
|
-
elements.include?(:access_info_field).should be_true
|
37
|
-
elements.include?(:add_button).should be_true
|
38
|
-
elements.include?(:remove_button).should be_true
|
39
|
-
end
|
40
|
-
end
|
@@ -1,87 +0,0 @@
|
|
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 Bib Editor' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@browser = @ole.browser
|
23
|
-
@bib_editor = OLE_QA::Framework::OLELS::Bib_Editor.new(@ole)
|
24
|
-
end
|
25
|
-
|
26
|
-
after :all do
|
27
|
-
@ole.quit
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should create a new instance' do
|
31
|
-
@bib_editor.class.should == OLE_QA::Framework::OLELS::Bib_Editor
|
32
|
-
@bib_editor.class.superclass.should == OLE_QA::Framework::OLELS::Editor
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should have bib editor elements' do
|
36
|
-
elements = @bib_editor.elements
|
37
|
-
elements.include?(:leader_field).should be_true
|
38
|
-
elements.include?(:bib_record_status_selector).should be_true
|
39
|
-
elements.include?(:set_button).should be_true
|
40
|
-
elements.include?(:control_003_link).should be_true
|
41
|
-
elements.include?(:control_005_link).should be_true
|
42
|
-
elements.include?(:control_006_link).should be_true
|
43
|
-
elements.include?(:control_007_link).should be_true
|
44
|
-
elements.include?(:control_008_link).should be_true
|
45
|
-
elements.include?(:control_009_link).should be_true
|
46
|
-
elements.include?(:control_001_field).should be_true
|
47
|
-
elements.include?(:control_003_field).should be_true
|
48
|
-
elements.include?(:control_005_field).should be_true
|
49
|
-
elements.include?(:control_006_format_selector).should be_true
|
50
|
-
elements.include?(:control_006_set_button).should be_true
|
51
|
-
elements.include?(:control_006_clear_button).should be_true
|
52
|
-
elements.include?(:control_007_catmtrl_selector).should be_true
|
53
|
-
elements.include?(:control_007_set_button).should be_true
|
54
|
-
elements.include?(:control_007_clear_button).should be_true
|
55
|
-
elements.include?(:control_008_field).should be_true
|
56
|
-
# Read-Only Elements (non-iterative fields, no input required)
|
57
|
-
elements.should include(:readonly_edit_button)
|
58
|
-
elements.should include(:readonly_created_by)
|
59
|
-
elements.should include(:readonly_created_date)
|
60
|
-
elements.should include(:readonly_leader_field)
|
61
|
-
elements.should include(:readonly_control_001_field)
|
62
|
-
elements.should include(:readonly_control_003_field)
|
63
|
-
elements.should include(:readonly_control_005_field)
|
64
|
-
elements.should include(:readonly_control_008_field)
|
65
|
-
end
|
66
|
-
|
67
|
-
it 'should have bib editor functions' do
|
68
|
-
functions = @bib_editor.functions
|
69
|
-
# Read-Only Elements (iterative fields, input required to specify which)
|
70
|
-
functions.should include(:readonly_control_006_field)
|
71
|
-
functions.should include(:readonly_control_007_field)
|
72
|
-
functions.should include(:readonly_tag_field)
|
73
|
-
functions.should include(:readonly_ind1_field)
|
74
|
-
functions.should include(:readonly_ind2_field)
|
75
|
-
functions.should include(:readonly_data_field)
|
76
|
-
end
|
77
|
-
|
78
|
-
it 'should have bib editor lines' do
|
79
|
-
lines = @bib_editor.lines
|
80
|
-
lines.include?(:control_006_line).should be_true
|
81
|
-
lines.include?(:control_007_line).should be_true
|
82
|
-
lines.include?(:data_line).should be_true
|
83
|
-
@bib_editor.control_006_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Control_006_Line)
|
84
|
-
@bib_editor.control_007_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Control_007_Line)
|
85
|
-
@bib_editor.data_line.should be_an_instance_of(OLE_QA::Framework::OLELS::Data_Line)
|
86
|
-
end
|
87
|
-
end
|
@@ -1,41 +0,0 @@
|
|
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 'An OLELS Control Field 006 line object' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@line = OLE_QA::Framework::OLELS::Control_006_Line.new(@ole,1)
|
23
|
-
end
|
24
|
-
|
25
|
-
after :all do
|
26
|
-
@ole.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should create a new instance' do
|
30
|
-
@line.should be_a(OLE_QA::Framework::OLELS::Control_006_Line)
|
31
|
-
end
|
32
|
-
|
33
|
-
it 'should have control field 006 line elements' do
|
34
|
-
elements = @line.elements
|
35
|
-
elements.should include(:field)
|
36
|
-
elements.should include(:add_button)
|
37
|
-
elements.should include(:edit_button)
|
38
|
-
elements.should include(:remove_button)
|
39
|
-
elements.should include(:clear_button)
|
40
|
-
end
|
41
|
-
end
|
@@ -1,41 +0,0 @@
|
|
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 'An OLELS Control Field 007 line object' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@line = OLE_QA::Framework::OLELS::Control_007_Line.new(@ole,1)
|
23
|
-
end
|
24
|
-
|
25
|
-
after :all do
|
26
|
-
@ole.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should create a new instance' do
|
30
|
-
@line.should be_a(OLE_QA::Framework::OLELS::Control_007_Line)
|
31
|
-
end
|
32
|
-
|
33
|
-
it 'should have control field 007 line elements' do
|
34
|
-
elements = @line.elements
|
35
|
-
elements.should include(:field)
|
36
|
-
elements.should include(:add_button)
|
37
|
-
elements.should include(:edit_button)
|
38
|
-
elements.should include(:remove_button)
|
39
|
-
elements.should include(:clear_button)
|
40
|
-
end
|
41
|
-
end
|
@@ -1,44 +0,0 @@
|
|
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 'A Bib Editor Line' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@browser = @ole.browser
|
23
|
-
@data_line = OLE_QA::Framework::OLELS::Data_Line.new(@ole, 1)
|
24
|
-
end
|
25
|
-
|
26
|
-
after :all do
|
27
|
-
@ole.quit
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should create a new instance' do
|
31
|
-
@data_line.class.should == OLE_QA::Framework::OLELS::Data_Line
|
32
|
-
@data_line.class.superclass.should == OLE_QA::Framework::Line_Object
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should have Marc data line elements' do
|
36
|
-
elements = @data_line.elements
|
37
|
-
elements.include?(:tag_field).should be_true
|
38
|
-
elements.include?(:ind1_field).should be_true
|
39
|
-
elements.include?(:ind2_field).should be_true
|
40
|
-
elements.include?(:data_field).should be_true
|
41
|
-
elements.include?(:add_button).should be_true
|
42
|
-
elements.include?(:remove_button).should be_true
|
43
|
-
end
|
44
|
-
end
|
@@ -1,75 +0,0 @@
|
|
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 'An OLELS Describe Workbench page' do
|
19
|
-
|
20
|
-
before :all do
|
21
|
-
@ole = OLE_QA::Framework::Session.new
|
22
|
-
@workbench = OLE_QA::Framework::OLELS::Describe_Workbench.new(@ole)
|
23
|
-
end
|
24
|
-
|
25
|
-
after :all do
|
26
|
-
@ole.quit
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should create a new instance' do
|
30
|
-
@workbench.class.should == OLE_QA::Framework::OLELS::Describe_Workbench
|
31
|
-
@workbench.class.superclass.should == OLE_QA::Framework::OLELS::Lookup
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should open the describe workbench via URL' do
|
35
|
-
@workbench.open
|
36
|
-
@workbench.title.text.strip.should == "Describe Workbench"
|
37
|
-
end
|
38
|
-
|
39
|
-
it 'should have describe workbench elements' do
|
40
|
-
elements = @workbench.methods
|
41
|
-
elements.include?(:title).should be_true
|
42
|
-
elements.include?(:search_button).should be_true
|
43
|
-
elements.include?(:clear_button).should be_true
|
44
|
-
elements.include?(:search_field_1).should be_true
|
45
|
-
elements.include?(:search_which_selector_1).should be_true
|
46
|
-
elements.include?(:search_field_selector_1).should be_true
|
47
|
-
elements.should include(:search_scope_1_and)
|
48
|
-
elements.should include(:search_scope_1_or)
|
49
|
-
elements.should include(:search_scope_1_not)
|
50
|
-
elements.should include(:search_field_2)
|
51
|
-
elements.should include(:search_which_selector_2)
|
52
|
-
elements.should include(:search_field_selector_2)
|
53
|
-
elements.should include(:search_scope_2_and)
|
54
|
-
elements.should include(:search_scope_2_or)
|
55
|
-
elements.should include(:search_scope_2_not)
|
56
|
-
elements.should include(:doc_type_bib)
|
57
|
-
elements.should include(:doc_type_holdings)
|
58
|
-
elements.should include(:doc_type_item)
|
59
|
-
elements.should include(:doc_type_e_holdings)
|
60
|
-
elements.should include(:export_to_xml_button)
|
61
|
-
elements.should include(:link_to_order_button)
|
62
|
-
elements.should include(:close_button)
|
63
|
-
elements.should include(:previous_link)
|
64
|
-
elements.should include(:next_link)
|
65
|
-
end
|
66
|
-
|
67
|
-
it 'should have describe workbench functions' do
|
68
|
-
functions = @workbench.functions
|
69
|
-
functions.should include(:select_by_text)
|
70
|
-
functions.should include(:view_by_text)
|
71
|
-
functions.should include(:edit_by_text)
|
72
|
-
functions.should include(:overlay_by_text)
|
73
|
-
functions.should include(:create_instance_by_text)
|
74
|
-
end
|
75
|
-
end
|
data/spec/olels/editor_spec.rb
DELETED
@@ -1,68 +0,0 @@
|
|
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
|
-
|
16
|
-
require 'rspec'
|
17
|
-
require 'spec_helper'
|
18
|
-
|
19
|
-
describe 'The Editor base class' do
|
20
|
-
|
21
|
-
before :all do
|
22
|
-
@ole = OLE_QA::Framework::Session.new
|
23
|
-
@editor = OLE_QA::Framework::OLELS::Editor.new(@ole)
|
24
|
-
end
|
25
|
-
|
26
|
-
after :all do
|
27
|
-
@ole.quit
|
28
|
-
end
|
29
|
-
|
30
|
-
it 'should create a new instance of the Editor base class' do
|
31
|
-
@editor.class.should == OLE_QA::Framework::OLELS::Editor
|
32
|
-
end
|
33
|
-
|
34
|
-
it 'should should be a page' do
|
35
|
-
@editor.class.superclass.should == OLE_QA::Framework::Page
|
36
|
-
end
|
37
|
-
|
38
|
-
it 'should open the Marc Editor via URL' do
|
39
|
-
@editor.open
|
40
|
-
@editor.title.text.should == "Bibliographic Editor - MARC Format"
|
41
|
-
end
|
42
|
-
|
43
|
-
it 'should have editor elements' do
|
44
|
-
elements = @editor.elements
|
45
|
-
elements.include?(:title).should be_true
|
46
|
-
elements.should include(:message)
|
47
|
-
elements.should include(:messages)
|
48
|
-
elements.should include(:message_header)
|
49
|
-
elements.include?(:submit_button).should be_true
|
50
|
-
elements.include?(:cancel_button).should be_true
|
51
|
-
elements.include?(:close_button).should be_true
|
52
|
-
elements.include?(:return_to_search_button).should be_true
|
53
|
-
elements.include?(:delete_bib_button).should be_true
|
54
|
-
elements.include?(:add_instance_button).should be_true
|
55
|
-
elements.include?(:delete_instance_button).should be_true
|
56
|
-
elements.include?(:add_item_button).should be_true
|
57
|
-
elements.include?(:delete_item_button).should be_true
|
58
|
-
end
|
59
|
-
|
60
|
-
it 'should have editor functions' do
|
61
|
-
functions = @editor.functions
|
62
|
-
functions.include?(:save_record).should be_true
|
63
|
-
functions.include?(:holdings_link).should be_true
|
64
|
-
functions.include?(:holdings_icon).should be_true
|
65
|
-
functions.include?(:item_link).should be_true
|
66
|
-
functions.should include(:message_count)
|
67
|
-
end
|
68
|
-
end
|
data/spec/olels/edocs_spec.rb
DELETED
@@ -1,50 +0,0 @@
|
|
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
|
-
|
16
|
-
require 'rspec'
|
17
|
-
require 'spec_helper'
|
18
|
-
|
19
|
-
|
20
|
-
describe 'An OLELS E-Document' do
|
21
|
-
|
22
|
-
before :all do
|
23
|
-
@ole = OLE_QA::Framework::Session.new
|
24
|
-
@edoc = OLE_QA::Framework::OLELS::E_Doc.new(@ole, @ole.ls_url)
|
25
|
-
end
|
26
|
-
|
27
|
-
after :all do
|
28
|
-
@ole.quit
|
29
|
-
end
|
30
|
-
|
31
|
-
it 'should should create a new instance' do
|
32
|
-
@edoc.class.should == OLE_QA::Framework::OLELS::E_Doc
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should be a page' do
|
36
|
-
@edoc.class.superclass.should == OLE_QA::Framework::Page
|
37
|
-
end
|
38
|
-
|
39
|
-
it 'should have e-document elements' do
|
40
|
-
elements = @edoc.elements
|
41
|
-
elements.should include(:title)
|
42
|
-
elements.should include(:description_field)
|
43
|
-
elements.should include(:explanation_field)
|
44
|
-
elements.should include(:org_doc_number_field)
|
45
|
-
elements.should include(:document_id)
|
46
|
-
elements.should include(:document_status)
|
47
|
-
elements.should include(:initiator_id)
|
48
|
-
elements.should include(:creation_timestamp)
|
49
|
-
end
|
50
|
-
end
|