fluent 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +11 -0
- data/lib/fluent.rb +4 -0
- data/lib/fluent/factory.rb +20 -1
- data/lib/fluent/version.rb +1 -1
- metadata +62 -129
- data/.gitignore +0 -19
- data/.travis.yml +0 -14
- data/Gemfile +0 -5
- data/Rakefile +0 -13
- data/fluent.gemspec +0 -33
- data/spec/enclosers_spec.rb +0 -38
- data/spec/evaluators_spec.rb +0 -88
- data/spec/factory_spec.rb +0 -49
- data/spec/fluent_spec.rb +0 -40
- data/spec/generators/button_generators_spec.rb +0 -77
- data/spec/generators/cell_generators_spec.rb +0 -50
- data/spec/generators/checkbox_generators_spec.rb +0 -88
- data/spec/generators/div_generators_spec.rb +0 -49
- data/spec/generators/form_generators_spec.rb +0 -42
- data/spec/generators/heading_generators_spec.rb +0 -87
- data/spec/generators/hidden_generators_spec.rb +0 -49
- data/spec/generators/image_generators_spec.rb +0 -42
- data/spec/generators/label_generators_spec.rb +0 -49
- data/spec/generators/link_generators_spec.rb +0 -64
- data/spec/generators/list_item_generators_spec.rb +0 -53
- data/spec/generators/ordered_list_generators_spec.rb +0 -53
- data/spec/generators/paragraph_generators_spec.rb +0 -65
- data/spec/generators/radio_generators_spec.rb +0 -85
- data/spec/generators/select_list_generators_spec.rb +0 -120
- data/spec/generators/span_generators_spec.rb +0 -49
- data/spec/generators/table_generators_spec.rb +0 -49
- data/spec/generators/text_area_generators_spec.rb +0 -55
- data/spec/generators/text_field_generators_spec.rb +0 -81
- data/spec/generators/unordered_list_generators_spec.rb +0 -53
- data/spec/generators_spec.rb +0 -87
- data/spec/mock_app.rb +0 -31
- data/spec/platform_object_spec.rb +0 -32
- data/spec/spec_helper.rb +0 -19
- data/spec/web_element_spec.rb +0 -38
- data/spec/web_element_watir_spec.rb +0 -156
- data/spec/web_elements/button_spec.rb +0 -21
- data/spec/web_elements/cell_spec.rb +0 -13
- data/spec/web_elements/checkbox_spec.rb +0 -25
- data/spec/web_elements/div_spec.rb +0 -9
- data/spec/web_elements/form_spec.rb +0 -9
- data/spec/web_elements/heading_spec.rb +0 -28
- data/spec/web_elements/hidden_spec.rb +0 -9
- data/spec/web_elements/image_spec.rb +0 -9
- data/spec/web_elements/label_spec.rb +0 -9
- data/spec/web_elements/link_spec.rb +0 -9
- data/spec/web_elements/list_item_spec.rb +0 -9
- data/spec/web_elements/option_spec.rb +0 -9
- data/spec/web_elements/ordered_list_spec.rb +0 -42
- data/spec/web_elements/paragraph_spec.rb +0 -9
- data/spec/web_elements/radio_spec.rb +0 -25
- data/spec/web_elements/select_list_spec.rb +0 -45
- data/spec/web_elements/span_spec.rb +0 -9
- data/spec/web_elements/table_row_spec.rb +0 -47
- data/spec/web_elements/table_spec.rb +0 -54
- data/spec/web_elements/text_area_spec.rb +0 -27
- data/spec/web_elements/text_field_spec.rb +0 -29
- 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
|