spec/lib/gametel/accessors_spec.rb in gametel-0.5.1 vs spec/lib/gametel/accessors_spec.rb in gametel-0.5.2

- old
+ new

@@ -509,10 +509,16 @@ accumulator.should_receive(:get_selected_item) accumulator.should_receive(:to_string) result.should_receive(:body).and_return('the text value') screen.spinner_id.should eq('the text value') end + + it "shuld be able to select an item" do + accumulator.should_receive(:id_from_name) + accumulator.should_receive(:press_spinner_item_by_id) + screen.select_spinner_id 4 + end end context "identified by index" do it "should be able to determine their selected item" do accumulator.should_receive(:get_class) @@ -520,9 +526,14 @@ accumulator.should_receive(:get_view).with('@@the_type@@', 1, anything) accumulator.should_receive(:get_selected_item) accumulator.should_receive(:to_string) result.should_receive(:body).and_return('the text value') screen.spinner_index.should eq('the text value') + end + + it "should be able to select an item" do + platform.should_receive(:press_spinner_item).with(1, 4) + screen.select_spinner_index 4 end end end context "progress bars" do