fluent 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/HISTORY.md +11 -0
  3. data/lib/fluent.rb +4 -0
  4. data/lib/fluent/factory.rb +20 -1
  5. data/lib/fluent/version.rb +1 -1
  6. metadata +62 -129
  7. data/.gitignore +0 -19
  8. data/.travis.yml +0 -14
  9. data/Gemfile +0 -5
  10. data/Rakefile +0 -13
  11. data/fluent.gemspec +0 -33
  12. data/spec/enclosers_spec.rb +0 -38
  13. data/spec/evaluators_spec.rb +0 -88
  14. data/spec/factory_spec.rb +0 -49
  15. data/spec/fluent_spec.rb +0 -40
  16. data/spec/generators/button_generators_spec.rb +0 -77
  17. data/spec/generators/cell_generators_spec.rb +0 -50
  18. data/spec/generators/checkbox_generators_spec.rb +0 -88
  19. data/spec/generators/div_generators_spec.rb +0 -49
  20. data/spec/generators/form_generators_spec.rb +0 -42
  21. data/spec/generators/heading_generators_spec.rb +0 -87
  22. data/spec/generators/hidden_generators_spec.rb +0 -49
  23. data/spec/generators/image_generators_spec.rb +0 -42
  24. data/spec/generators/label_generators_spec.rb +0 -49
  25. data/spec/generators/link_generators_spec.rb +0 -64
  26. data/spec/generators/list_item_generators_spec.rb +0 -53
  27. data/spec/generators/ordered_list_generators_spec.rb +0 -53
  28. data/spec/generators/paragraph_generators_spec.rb +0 -65
  29. data/spec/generators/radio_generators_spec.rb +0 -85
  30. data/spec/generators/select_list_generators_spec.rb +0 -120
  31. data/spec/generators/span_generators_spec.rb +0 -49
  32. data/spec/generators/table_generators_spec.rb +0 -49
  33. data/spec/generators/text_area_generators_spec.rb +0 -55
  34. data/spec/generators/text_field_generators_spec.rb +0 -81
  35. data/spec/generators/unordered_list_generators_spec.rb +0 -53
  36. data/spec/generators_spec.rb +0 -87
  37. data/spec/mock_app.rb +0 -31
  38. data/spec/platform_object_spec.rb +0 -32
  39. data/spec/spec_helper.rb +0 -19
  40. data/spec/web_element_spec.rb +0 -38
  41. data/spec/web_element_watir_spec.rb +0 -156
  42. data/spec/web_elements/button_spec.rb +0 -21
  43. data/spec/web_elements/cell_spec.rb +0 -13
  44. data/spec/web_elements/checkbox_spec.rb +0 -25
  45. data/spec/web_elements/div_spec.rb +0 -9
  46. data/spec/web_elements/form_spec.rb +0 -9
  47. data/spec/web_elements/heading_spec.rb +0 -28
  48. data/spec/web_elements/hidden_spec.rb +0 -9
  49. data/spec/web_elements/image_spec.rb +0 -9
  50. data/spec/web_elements/label_spec.rb +0 -9
  51. data/spec/web_elements/link_spec.rb +0 -9
  52. data/spec/web_elements/list_item_spec.rb +0 -9
  53. data/spec/web_elements/option_spec.rb +0 -9
  54. data/spec/web_elements/ordered_list_spec.rb +0 -42
  55. data/spec/web_elements/paragraph_spec.rb +0 -9
  56. data/spec/web_elements/radio_spec.rb +0 -25
  57. data/spec/web_elements/select_list_spec.rb +0 -45
  58. data/spec/web_elements/span_spec.rb +0 -9
  59. data/spec/web_elements/table_row_spec.rb +0 -47
  60. data/spec/web_elements/table_spec.rb +0 -54
  61. data/spec/web_elements/text_area_spec.rb +0 -27
  62. data/spec/web_elements/text_field_spec.rb +0 -29
  63. data/spec/web_elements/unordered_list_spec.rb +0 -42
@@ -1,42 +0,0 @@
1
- require_relative '../spec_helper'
2
-
3
- describe 'Fluent::WebElements::UnorderedList' do
4
-
5
- it 'should register with a unordered list tag' do
6
- ::Fluent::WebElements.get_class_for(:ul).should == ::Fluent::WebElements::UnorderedList
7
- end
8
-
9
- context 'on the watir platform' do
10
- let(:ul_element) { double('ul_element') }
11
- let(:watir_unordered_list) { Fluent::WebElements::UnorderedList.new(ul_element, :platform => :watir_webdriver) }
12
-
13
- it 'should return a list item when indexed' do
14
- ul_element.stub(:uls).and_return([ul_element])
15
- ul_element.stub(:find_elements).and_return(ul_element)
16
- ul_element.stub(:map).and_return([ul_element])
17
- ul_element.stub(:parent).and_return(ul_element)
18
- ul_element.stub(:element).and_return(ul_element)
19
- ul_element.stub(:==).and_return(true)
20
- watir_unordered_list[1]
21
- end
22
-
23
- it 'should know how many list items it contains' do
24
- ul_element.stub(:uls).and_return([ul_element])
25
- ul_element.stub(:find_elements).and_return(ul_element)
26
- ul_element.stub(:map).and_return([ul_element])
27
- ul_element.stub(:parent).and_return(ul_element)
28
- ul_element.stub(:element).and_return(ul_element)
29
- ul_element.stub(:==).and_return(true)
30
- watir_unordered_list.items.should == 1
31
- end
32
-
33
- it 'should iterate over the list items' do
34
- watir_unordered_list.should_receive(:items).and_return(5)
35
- watir_unordered_list.stub(:[])
36
- count = 0
37
- watir_unordered_list.each { |item| count += 1 }
38
- count.should == 5
39
- end
40
- end
41
-
42
- end