Top Level Namespace

Defined Under Namespace

Modules: Refinery, WillPaginate Classes: ApplicationController

Constant Summary

APP_RAKEFILE =
File.expand_path("../spec/dummy/Rakefile", __FILE__)

Instance Method Summary (collapse)

Instance Method Details

- (Object) new_window_should_have_content(content)



4
5
6
7
8
9
# File 'pages/spec/requests/refinery/admin/pages_spec.rb', line 4

def new_window_should_have_content(content)
  new_window = page.driver.browser.window_handles.last
  page.within_window new_window do
    page.should have_content(content)
  end
end