ole-qa-framework 3.1.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. data/CHANGELOG.md +14 -1
  2. data/lib/common/page.rb +3 -0
  3. data/lib/ole_qa_framework/VERSION.rb +1 -1
  4. data/lib/olels/common/batch_profile.rb +53 -0
  5. data/lib/olels/objects/batch_data_mapping_line.rb +41 -0
  6. data/lib/olels/objects/batch_delete_field_line.rb +26 -0
  7. data/lib/olels/objects/batch_rename_field_line.rb +32 -0
  8. data/lib/olels/objects/export_filter_line.rb +28 -0
  9. data/lib/olels/objects/import_defaults_line.rb +27 -0
  10. data/{spec/olels/main_menu_spec.rb → lib/olels/objects/import_match_line.rb} +7 -19
  11. data/lib/olels/objects/import_pf_line.rb +27 -0
  12. data/lib/olels/pages/batch_export_profile.rb +82 -0
  13. data/lib/olels/pages/batch_import_profile.rb +136 -0
  14. data/lib/olels/pages/batch_job_details.rb +48 -0
  15. data/lib/olels/pages/batch_process.rb +47 -0
  16. data/lib/olels/pages/batch_profile_lookup.rb +56 -0
  17. data/lib/olels/pages/batch_type_lookup.rb +52 -0
  18. data/spec/common/page_spec.rb +30 -1
  19. data/spec/modules/qa_page_helpers_spec.rb +1 -1
  20. metadata +16 -98
  21. data/spec/olefs/accounting_line_spec.rb +0 -64
  22. data/spec/olefs/building_lookup_spec.rb +0 -45
  23. data/spec/olefs/copies_line_spec.rb +0 -56
  24. data/spec/olefs/edocs_spec.rb +0 -75
  25. data/spec/olefs/exception_notes_line_spec.rb +0 -46
  26. data/spec/olefs/invoice_current_item_spec.rb +0 -48
  27. data/spec/olefs/invoice_line_item_spec.rb +0 -80
  28. data/spec/olefs/invoice_line_spec.rb +0 -64
  29. data/spec/olefs/invoice_spec.rb +0 -91
  30. data/spec/olefs/line_item_spec.rb +0 -129
  31. data/spec/olefs/load_report_spec.rb +0 -56
  32. data/spec/olefs/load_summary_lookup_spec.rb +0 -53
  33. data/spec/olefs/lookup_spec.rb +0 -50
  34. data/spec/olefs/main_menu_spec.rb +0 -34
  35. data/spec/olefs/notes_line_spec.rb +0 -53
  36. data/spec/olefs/payment_request_spec.rb +0 -43
  37. data/spec/olefs/processing_line_spec.rb +0 -45
  38. data/spec/olefs/purap_document_spec.rb +0 -80
  39. data/spec/olefs/purchase_order_spec.rb +0 -63
  40. data/spec/olefs/receipt_notes_line_spec.rb +0 -45
  41. data/spec/olefs/receive_spec.rb +0 -51
  42. data/spec/olefs/receiving_line_spec.rb +0 -87
  43. data/spec/olefs/requisition_spec.rb +0 -71
  44. data/spec/olefs/vendor_lookup_spec.rb +0 -49
  45. data/spec/olels/access_info_line_spec.rb +0 -40
  46. data/spec/olels/bib_editor_spec.rb +0 -87
  47. data/spec/olels/control_006_line_spec.rb +0 -41
  48. data/spec/olels/control_007_line_spec.rb +0 -41
  49. data/spec/olels/data_line_spec.rb +0 -44
  50. data/spec/olels/describe_workbench_spec.rb +0 -75
  51. data/spec/olels/editor_spec.rb +0 -68
  52. data/spec/olels/edocs_spec.rb +0 -50
  53. data/spec/olels/holdings_note_spec.rb +0 -41
  54. data/spec/olels/instance_editor_spec.rb +0 -73
  55. data/spec/olels/item_editor_spec.rb +0 -96
  56. data/spec/olels/item_note_spec.rb +0 -41
  57. data/spec/olels/loan_spec.rb +0 -104
  58. data/spec/olels/lookup_spec.rb +0 -38
  59. data/spec/olels/ownership_extent_line_spec.rb +0 -48
  60. data/spec/olels/ownership_note_spec.rb +0 -42
  61. data/spec/olels/patron_address_line_spec.rb +0 -55
  62. data/spec/olels/patron_email_line_spec.rb +0 -44
  63. data/spec/olels/patron_lookup_spec.rb +0 -54
  64. data/spec/olels/patron_phone_line_spec.rb +0 -47
  65. data/spec/olels/patron_spec.rb +0 -93
  66. data/spec/olels/return_spec.rb +0 -72
  67. data/spec/olels/staff_upload_spec.rb +0 -55
@@ -0,0 +1,48 @@
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
+ module OLE_QA::Framework::OLELS
16
+
17
+ class Batch_Job_Details < OLE_QA::Framework::Page
18
+ def initialize(ole_session)
19
+ url = ole_session.url + 'portal.do?channelTitle=Batch Process Job Details&channelUrl='
20
+ url += ole_session.url + 'ole-kr-krad/oleBatchProcessJobController?viewId=OLEBatchProcessJobDetailsView&methodToCall=jobDocHandler&command=initiate&documentClass=org.kuali.ole.batch.bo.OLEBatchProcessJobDetailsBo'
21
+ super(ole_session, url)
22
+ end
23
+
24
+ def set_elements
25
+ super
26
+ element(:title) {b.span(:class => 'uif-headerText-span')}
27
+ element(:next_page) {b.a(:text => 'Next')}
28
+ element(:previous_page) {b.a(:text => 'Previous')}
29
+ element(:entries_selector) {b.b.div(:id => 'OLEBatchProcessJobDetailsView-listOfItems_disclosureContent').div(:index => 1).div(:index => 0).label(:index => 0).select_list(:index => 0)}
30
+ end
31
+
32
+ def wait_for_elements
33
+ super
34
+ @wait_on << :title
35
+ end
36
+
37
+ def set_functions
38
+ super
39
+ # Check whether the given text exists within the job details results displayed.
40
+ function(:text_in_results) {|text| b.td(:xpath => "//table/tbody/tr/td[div/span[contains(text(),'#{text}')]]")}
41
+ # Return the 'Remove' button for a row containing the given text.
42
+ # @note This could be dangerous with the wrong selection text. Use this function carefully!
43
+ function(:remove_by_text) {|text| b.button(:xpath=>"//table/tbody/tr[td/div/span[contains(text(),'#{text}')]]/td/div/fieldset/div/div/button[contains(text(),'Remove')]")}
44
+ # Return the 'View Job Report' link for a row containing the given text.
45
+ function(:job_report_by_text) {|text| b.a(:xpath => "//table/tbody/tr[td/div/span[contains(text(),'#{text}')]]/td/div/fieldset/div/div/div/a[contains(text(),'View Job Report')]")}
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,47 @@
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
+ module OLE_QA::Framework::OLELS
16
+ # The Batch Process control screen in the OLE Library System
17
+ class Batch_Process < OLE_QA::Framework::Page
18
+ # Define URL in initialize.
19
+ def initialize(ole_session)
20
+ url = ole_session.url + 'portal.do?channelTitle=Batch Process&channelUrl='
21
+ url += ole_session.url + 'ole-kr-krad/oleBatchProcessDefinitionController?viewId=OLEBatchProcessDefinitionView&methodToCall=startBatch&command=initiate&documentClass=org.kuali.ole.batch.document.OLEBatchProcessDefinitionDocument'
22
+ super(ole_session, url)
23
+ end
24
+
25
+ def set_elements
26
+ super
27
+ element(:title) {b.h1.span}
28
+ element(:name_field) {b.text_field(:id => 'BatchProcessDefinition-batchProcessName_control')}
29
+ element(:profile_name_field) {b.text_field(:id => 'BatchProcessDefinition-batchProcessProfileName_control')}
30
+ element(:profile_search_icon) {b.input(:title => 'Search Field')}
31
+ element(:batch_size_field) {b.text_field(:id => 'chunkSizeField_control')}
32
+ element(:email_field) {b.text_field(:id => 'emailField_control')}
33
+ element(:output_format_selector) {b.select_list(:id => 'outputField_control')}
34
+ element(:output_file_field) {b.text_field(:id => 'outputFileField_control')}
35
+ element(:run_button) {b.button(:id => 'runNowButton')}
36
+ element(:schedule_button) {b.button(:id => 'scheduleButton')}
37
+ end
38
+
39
+ def wait_for_elements
40
+ super
41
+ @wait_on << :title
42
+ @wait_on << :name_field
43
+ @wait_on << :profile_name_field
44
+ @wait_on << :run_button
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,56 @@
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
+ module OLE_QA::Framework::OLELS
16
+ # The Batch Process Profile Lookup Screen in the OLE Library System
17
+ class Batch_Profile_Lookup < OLE_QA::Framework::OLELS::Lookup
18
+ def initialize(ole_session)
19
+ url = ole_session.url + 'portal.do?channelTitle=Batch Process Profile&channelUrl='
20
+ url += ole_session.url + 'ole-kr-krad/lookup?methodToCall=start&dataObjectClassName=org.kuali.ole.batch.bo.OLEBatchProcessProfileBo&returnLocation='
21
+ url += ole_session.url + 'portal.do&hideReturnLink=true&showMaintenanceLinks=true'
22
+ super(ole_session, url)
23
+ end
24
+
25
+ def set_elements
26
+ super
27
+ element(:create_new) {b.link(:text => 'Create New')}
28
+ element(:profile_name_field) {b.text_field(:id => 'lookup-batchProcessProfileName_control')}
29
+ element(:profile_description_field) {b.text_field(:id => 'lookup-batchProcessProfileDesc_control')}
30
+ element(:profile_type_selector) {b.select_list(:id => 'lookup-batchProcessProfileType_control')}
31
+ element(:krms_profile_selector) {b.select_list(:id => 'lookup-krmsProfileName_control')}
32
+ element(:search_button) {b.button(:id => 'searchReqBtn')}
33
+ element(:clear_button) {b.button(:id => 'clearReqBtn')}
34
+ element(:cancel_button) {b.button(:id => 'cancelReqBtn')}
35
+ end
36
+
37
+ def wait_for_elements
38
+ super
39
+ @wait_on << :profile_name_field
40
+ @wait_on << :search_button
41
+ end
42
+
43
+ def set_functions
44
+ super
45
+ # Check whether the given text exists within the search results displayed.
46
+ function(:text_in_results) {|text| b.td(:xpath => "//table/tbody/tr/td[div/span[contains(text(),'#{text}')]]")}
47
+ # Return the 'Edit' link for a row containing the given text.
48
+ function(:edit_by_text) {|text| b.a(:xpath => "//table/tbody/tr[td/div/span[contains(text(),'#{text}')]]/td[1]/div/fieldset/div/a[contains(text(),'edit')]")}
49
+ # Return the Batch Process Profile ID link for a row containing the given text.
50
+ function(:id_by_text) {|text| b.a(:xpath => "//table/tbody/tr[td/div/span[contains(text(),'#{text}')]]/td[2]/div/span/a")}
51
+ # Return the value of the Batch Process Profile containing the given text.
52
+ # @note Replaces :edit_by_text when the lookup is embedded on a batch profile editing screen.
53
+ function(:return_by_text) {|text| b.a(:xpath => "//table/tbody/tr[td/div/span[contains(text(),'#{text}')]]/td/div/a[contains(text(),'return value')]")}
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,52 @@
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
+ module OLE_QA::Framework::OLELS
16
+ # The Batch Process Type Lookup Screen in the OLE Library System
17
+ class Batch_Type_Lookup < OLE_QA::Framework::OLELS::Lookup
18
+ def initialize(ole_session)
19
+ url = ole_session.url + 'portal.do?channelTitle=Batch Process Type&channelUrl='
20
+ url += ole_session.url + 'ole-kr-krad/lookup?methodToCall=start&dataObjectClassName=org.kuali.ole.batch.bo.OLEBatchProcessTypeBo&returnLocation='
21
+ url += ole_session.url + 'portal.do&hideReturnLink=true&showMaintenanceLinks=true'
22
+ super(ole_session, url)
23
+ end
24
+
25
+ def set_elements
26
+ super
27
+ element(:id_field) {b.text_field(:id => 'lookup-batchProcessTypeId_control')}
28
+ element(:name_field) {b.text_field(:id => 'lookup-batchProcessTypeName_control')}
29
+ element(:type_code_field) {b.text_field(:id => 'lookup-batchProcessTypeCode_control')}
30
+ element(:active_yes) {b.radio(:id => 'lookup-active_control_0')}
31
+ element(:active_no) {b.radio(:id => 'lookup-active_control_1')}
32
+ element(:active_both) {b.radio(:id => 'lookup-active_control_2')}
33
+ element(:search_button) {b.button(:id => 'searchReqBtn')}
34
+ element(:clear_button) {b.button(:id => 'clearReqBtn')}
35
+ element(:cancel_button) {b.button(:id => 'cancelReqBtn')}
36
+ end
37
+
38
+ def wait_for_elements
39
+ super
40
+ @wait_on << :id_field
41
+ @wait_on << :search_button
42
+ end
43
+
44
+ def set_functions
45
+ super
46
+ # Check whether the given text exists in the search results.
47
+ function(:text_in_results) {|text| b.td(:xpath => "//table/tbody/tr/td[div/span[contains(text(),'#{text}')]]")}
48
+ # Return the Batch Process Type ID link for a row containing the given text.
49
+ function(:id_by_text) {|text| b.a(:xpath => "//table/tbody/tr[td/div/span[contains(text(),'#{text}')]]/td[1]/div/span/a")}
50
+ end
51
+ end
52
+ end
@@ -21,6 +21,26 @@ describe "A Page" do
21
21
  before :all do
22
22
  @ole = OLE_QA::Framework::Session.new
23
23
  @page = OLE_QA::Framework::Page.new(@ole, @ole.base_url)
24
+
25
+ class TestPage < OLE_QA::Framework::Page
26
+ def initialize(ole_session)
27
+ url = 'http://www.google.com'
28
+ super(ole_session, url)
29
+ end
30
+
31
+ def set_elements
32
+ super
33
+ element(:input) {b.text_field(:id => 'gbqfq')}
34
+ element(:button) {b.button(:id => 'gbqfba')}
35
+ end
36
+
37
+ def wait_for_elements
38
+ super
39
+ @wait_on << :input << :button
40
+ end
41
+ end
42
+
43
+ @google_page = TestPage.new(@ole)
24
44
  end
25
45
 
26
46
  after :all do
@@ -40,6 +60,16 @@ describe "A Page" do
40
60
  @page.url.should == @ole.base_url
41
61
  end
42
62
 
63
+ it 'should wait for necessary elements to be present' do
64
+ @google_page.open.should be_true
65
+ @google_page.wait_for_page_to_load.should be_true
66
+ end
67
+
68
+ it 'should set elements on a subclass' do
69
+ @google_page.elements.include?(:input).should be_true
70
+ @google_page.elements.include?(:button).should be_true
71
+ end
72
+
43
73
  it 'should be able to login as another user' do
44
74
  @page.open
45
75
  @page.login('ole-abeal').should be_true
@@ -58,5 +88,4 @@ describe "A Page" do
58
88
  OLE_QA::Framework::OLEFS::Requisition.new(@ole).open
59
89
  @page.browser.class.should == Watir::Frame
60
90
  end
61
-
62
91
  end
@@ -26,7 +26,7 @@ describe 'The Page Helpers module' do
26
26
  end
27
27
  end
28
28
 
29
- @test_page = TestPage.new(@ole, @ole.url)
29
+ @test_page = TestPage.new(@ole)
30
30
  end
31
31
 
32
32
  after :all do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ole-qa-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-05 00:00:00.000000000 Z
12
+ date: 2013-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -164,20 +164,34 @@ files:
164
164
  - lib/olefs/subobjects/notes_line.rb
165
165
  - lib/olefs/subobjects/processing_line.rb
166
166
  - lib/olefs/subobjects/receipt_notes_line.rb
167
+ - lib/olels/common/batch_profile.rb
167
168
  - lib/olels/common/e_doc.rb
168
169
  - lib/olels/common/editor.rb
169
170
  - lib/olels/common/lookup.rb
170
171
  - lib/olels/objects/access_info_line.rb
172
+ - lib/olels/objects/batch_data_mapping_line.rb
173
+ - lib/olels/objects/batch_delete_field_line.rb
174
+ - lib/olels/objects/batch_rename_field_line.rb
171
175
  - lib/olels/objects/control_006_line.rb
172
176
  - lib/olels/objects/control_007_line.rb
173
177
  - lib/olels/objects/data_line.rb
174
178
  - lib/olels/objects/editor_note.rb
179
+ - lib/olels/objects/export_filter_line.rb
175
180
  - lib/olels/objects/holdings_note.rb
181
+ - lib/olels/objects/import_defaults_line.rb
182
+ - lib/olels/objects/import_match_line.rb
183
+ - lib/olels/objects/import_pf_line.rb
176
184
  - lib/olels/objects/item_note.rb
177
185
  - lib/olels/objects/ownership_extent_line.rb
178
186
  - lib/olels/objects/patron_address_line.rb
179
187
  - lib/olels/objects/patron_email_line.rb
180
188
  - lib/olels/objects/patron_phone_line.rb
189
+ - lib/olels/pages/batch_export_profile.rb
190
+ - lib/olels/pages/batch_import_profile.rb
191
+ - lib/olels/pages/batch_job_details.rb
192
+ - lib/olels/pages/batch_process.rb
193
+ - lib/olels/pages/batch_profile_lookup.rb
194
+ - lib/olels/pages/batch_type_lookup.rb
181
195
  - lib/olels/pages/bib_editor.rb
182
196
  - lib/olels/pages/describe_workbench.rb
183
197
  - lib/olels/pages/instance_editor.rb
@@ -197,54 +211,6 @@ files:
197
211
  - spec/common/subline_object_spec.rb
198
212
  - spec/modules/qa_helpers_spec.rb
199
213
  - spec/modules/qa_page_helpers_spec.rb
200
- - spec/olefs/accounting_line_spec.rb
201
- - spec/olefs/building_lookup_spec.rb
202
- - spec/olefs/copies_line_spec.rb
203
- - spec/olefs/edocs_spec.rb
204
- - spec/olefs/exception_notes_line_spec.rb
205
- - spec/olefs/invoice_current_item_spec.rb
206
- - spec/olefs/invoice_line_item_spec.rb
207
- - spec/olefs/invoice_line_spec.rb
208
- - spec/olefs/invoice_spec.rb
209
- - spec/olefs/line_item_spec.rb
210
- - spec/olefs/load_report_spec.rb
211
- - spec/olefs/load_summary_lookup_spec.rb
212
- - spec/olefs/lookup_spec.rb
213
- - spec/olefs/main_menu_spec.rb
214
- - spec/olefs/notes_line_spec.rb
215
- - spec/olefs/payment_request_spec.rb
216
- - spec/olefs/processing_line_spec.rb
217
- - spec/olefs/purap_document_spec.rb
218
- - spec/olefs/purchase_order_spec.rb
219
- - spec/olefs/receipt_notes_line_spec.rb
220
- - spec/olefs/receive_spec.rb
221
- - spec/olefs/receiving_line_spec.rb
222
- - spec/olefs/requisition_spec.rb
223
- - spec/olefs/vendor_lookup_spec.rb
224
- - spec/olels/access_info_line_spec.rb
225
- - spec/olels/bib_editor_spec.rb
226
- - spec/olels/control_006_line_spec.rb
227
- - spec/olels/control_007_line_spec.rb
228
- - spec/olels/data_line_spec.rb
229
- - spec/olels/describe_workbench_spec.rb
230
- - spec/olels/editor_spec.rb
231
- - spec/olels/edocs_spec.rb
232
- - spec/olels/holdings_note_spec.rb
233
- - spec/olels/instance_editor_spec.rb
234
- - spec/olels/item_editor_spec.rb
235
- - spec/olels/item_note_spec.rb
236
- - spec/olels/loan_spec.rb
237
- - spec/olels/lookup_spec.rb
238
- - spec/olels/main_menu_spec.rb
239
- - spec/olels/ownership_extent_line_spec.rb
240
- - spec/olels/ownership_note_spec.rb
241
- - spec/olels/patron_address_line_spec.rb
242
- - spec/olels/patron_email_line_spec.rb
243
- - spec/olels/patron_lookup_spec.rb
244
- - spec/olels/patron_phone_line_spec.rb
245
- - spec/olels/patron_spec.rb
246
- - spec/olels/return_spec.rb
247
- - spec/olels/staff_upload_spec.rb
248
214
  - spec/spec_helper.rb
249
215
  homepage: http://www.github.com/jkwaldrip/ole-qa-framework/
250
216
  licenses:
@@ -279,53 +245,5 @@ test_files:
279
245
  - spec/common/subline_object_spec.rb
280
246
  - spec/modules/qa_helpers_spec.rb
281
247
  - spec/modules/qa_page_helpers_spec.rb
282
- - spec/olefs/accounting_line_spec.rb
283
- - spec/olefs/building_lookup_spec.rb
284
- - spec/olefs/copies_line_spec.rb
285
- - spec/olefs/edocs_spec.rb
286
- - spec/olefs/exception_notes_line_spec.rb
287
- - spec/olefs/invoice_current_item_spec.rb
288
- - spec/olefs/invoice_line_item_spec.rb
289
- - spec/olefs/invoice_line_spec.rb
290
- - spec/olefs/invoice_spec.rb
291
- - spec/olefs/line_item_spec.rb
292
- - spec/olefs/load_report_spec.rb
293
- - spec/olefs/load_summary_lookup_spec.rb
294
- - spec/olefs/lookup_spec.rb
295
- - spec/olefs/main_menu_spec.rb
296
- - spec/olefs/notes_line_spec.rb
297
- - spec/olefs/payment_request_spec.rb
298
- - spec/olefs/processing_line_spec.rb
299
- - spec/olefs/purap_document_spec.rb
300
- - spec/olefs/purchase_order_spec.rb
301
- - spec/olefs/receipt_notes_line_spec.rb
302
- - spec/olefs/receive_spec.rb
303
- - spec/olefs/receiving_line_spec.rb
304
- - spec/olefs/requisition_spec.rb
305
- - spec/olefs/vendor_lookup_spec.rb
306
- - spec/olels/access_info_line_spec.rb
307
- - spec/olels/bib_editor_spec.rb
308
- - spec/olels/control_006_line_spec.rb
309
- - spec/olels/control_007_line_spec.rb
310
- - spec/olels/data_line_spec.rb
311
- - spec/olels/describe_workbench_spec.rb
312
- - spec/olels/editor_spec.rb
313
- - spec/olels/edocs_spec.rb
314
- - spec/olels/holdings_note_spec.rb
315
- - spec/olels/instance_editor_spec.rb
316
- - spec/olels/item_editor_spec.rb
317
- - spec/olels/item_note_spec.rb
318
- - spec/olels/loan_spec.rb
319
- - spec/olels/lookup_spec.rb
320
- - spec/olels/main_menu_spec.rb
321
- - spec/olels/ownership_extent_line_spec.rb
322
- - spec/olels/ownership_note_spec.rb
323
- - spec/olels/patron_address_line_spec.rb
324
- - spec/olels/patron_email_line_spec.rb
325
- - spec/olels/patron_lookup_spec.rb
326
- - spec/olels/patron_phone_line_spec.rb
327
- - spec/olels/patron_spec.rb
328
- - spec/olels/return_spec.rb
329
- - spec/olels/staff_upload_spec.rb
330
248
  - spec/spec_helper.rb
331
249
  has_rdoc:
@@ -1,64 +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 accounting line' do
19
-
20
- before :all do
21
- @ole = OLE_QA::Framework::Session.new
22
- @accounting_line = OLE_QA::Framework::OLEFS::Accounting_Line.new(@ole, 1, 1)
23
- end
24
-
25
- after :all do
26
- @ole.quit
27
- end
28
-
29
- it 'should create a new instance' do
30
- @accounting_line.class.should == OLE_QA::Framework::OLEFS::Accounting_Line
31
- end
32
-
33
- it 'should be a subclass of subline object' do
34
- @accounting_line.class.superclass.should == OLE_QA::Framework::Subline_Object
35
- end
36
-
37
- it 'should have a browser accessor' do
38
- @accounting_line.browser.class.should == @ole.browser.class
39
- end
40
-
41
- it 'should have line number attributes' do
42
- @accounting_line.line_number.should == 1
43
- end
44
-
45
- it 'should have accounting line elements' do
46
- methods = @accounting_line.methods
47
- methods.include?(:account_number_field).should be_true
48
- methods.include?(:sub_account_number_field).should be_true
49
- methods.include?(:object_field).should be_true
50
- methods.include?(:sub_object_field).should be_true
51
- methods.include?(:project_field).should be_true
52
- methods.include?(:org_ref_id_field).should be_true
53
- methods.include?(:dollar_field).should be_true
54
- methods.include?(:percent_field).should be_true
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
63
- end
64
- end