spec/druid/page_populator_spec.rb in druid-ts-1.2.2 vs spec/druid/page_populator_spec.rb in druid-ts-1.2.3

- old
+ new

@@ -42,12 +42,14 @@ expect(driver).to receive(:tag_name).and_return('textarea') druid.populate_page_with('ta' => 'value') end it "should set a value in a select list" do - expect(druid).to receive(:sa=).with('value') - expect(druid).to receive(:is_enabled?).and_return(true) - druid.populate_page_with('sa' => 'value') + list = double('sl') + expect(druid).to receive(:sl_element).and_return(list) + expect(list).to receive(:options).and_return(['value']) + expect(list).to receive(:select).with('value') + druid.populate_page_with('sl' => 'value') end it "should set a value in a file field" do expect(druid).to receive(:ff=).with('value') expect(druid).to receive(:is_enabled?).and_return(true)