How to include World concept of cucumber in site-prism? So that I can include test_site class in World and then no need to instantiate test_site class every time in step functions. Is it possible?
I'm using Ruby with Capybara and site-prism; not rails!!!
My test_site class is:
class TestSite
def home
TestHomePage.new
end
end
Can't I do like this?
module Some
class TestSite
def home
TestHomePage.new
end
end
end
World(Some)