Skip to content

Commit

Permalink
updated due to fix in page_navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
cheezy committed Feb 19, 2013
1 parent 8963a9b commit b18fe4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/page-object.rb
Expand Up @@ -267,6 +267,7 @@ def execute_script(script)
# * :id => Watir and Selenium
# * :index => Watir and Selenium
# * :name => Watir and Selenium
# * :class => Watir only
# @param frame passed from a previous call to in_frame. Used to nest calls
# @param block that contains the calls to elements that exist inside the frame.
#
Expand Down
4 changes: 4 additions & 0 deletions spec/page-object/page_factory_spec.rb
Expand Up @@ -228,6 +228,10 @@ class PageUsingParmsAndInterpolated
}

@world.current_page = FactoryTestPage.new(@world.browser)
f_page = FactoryTestPage.new(@world.browser)
FactoryTestPage.should_receive(:new).and_return(f_page)
f_page.should_receive(:respond_to?).with(:a_method).and_return(true)
f_page.should_receive(:a_method)
a_page = AnotherPage.new(@world.browser)
AnotherPage.should_receive(:new).and_return(a_page)
a_page.should_receive(:respond_to?).with(:b_method).and_return(true)
Expand Down

0 comments on commit b18fe4c

Please sign in to comment.