Sha256: 28bed4f5bf51c58ceed498fb6011be94d5e5d7c1ff89511aaa85b9e1ecc1f044
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
require 'spec_helper' describe 'rails3.0 support', :type => :request, :driver => :selenium do include Retryable it 'displays a loading image' do retry_exceptions do visit("http://localhost:#{R30SERVERPORT}") # goes to welcome page page.should have_no_selector('.ajaxpagination-loader') sleep(1.5) click_link 'About' page.should have_selector('.ajaxpagination-loader') sleep(1.5) page.should have_no_selector('.ajaxpagination-loader') click_link 'Readme' page.should have_selector('.ajaxpagination-loader') sleep(1.5) page.should have_no_selector('.ajaxpagination-loader') click_link 'Changelog' sleep(2) page.should have_selector('#changelogpagetitle') find('#_paginated_section').find('.next_page').click page.should have_selector('.ajaxpagination-loader') sleep(1.5) page.should have_no_selector('.ajaxpagination-loader') end end it 'submits ajax_form_tag form via post' do visit("http://localhost:#{R30SERVERPORT}/pages/about") count = page.find("#submits").html.to_i click_button("Submit") sleep(1.5) page.should have_content("#{count+1} submit") page.should have_selector('#aboutpagetitle') # ensures loading was via AJAX Pagination end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ajax_pagination-0.5.1 | spec/ajax_pagination/integration/rails30_spec.rb |