spec/druid/elements/page_factory_spec.rb in druid-ts-1.1.8 vs spec/druid/elements/page_factory_spec.rb in druid-ts-1.2.0
- old
+ new
@@ -4,18 +4,18 @@
class FactoryTestDruid
include Druid
page_url "http://www.baidu.com"
end
-class TestWorld
+class TestWorldOne
include Druid::PageFactory
attr_accessor :driver
end
describe Druid::PageFactory do
before(:each) do
- @world = TestWorld.new
+ @world = TestWorldOne.new
@world.driver = mock_driver
end
it "should create and visit a new page" do
expect(@world.driver).to receive(:goto)