So, with respect to integration testing using Capybara and RSpec, I know I can do this:
page.driver.browser.manage.window.resize_to(x,y)
pe
@tirdadc if you're using Poltergeist, you can add something like this to your rails_helper.rb file:
rails_helper.rb
Capybara.register_driver :poltergeist do |app| options = { # js_errors: true, # cookies: true, window_size: [320, 568] # iphone 5 } Capybara::Poltergeist::Driver.new(app, options) end