Sha256: 7b3bb3059a5dcb6386cc5525c8c0d3b8de8d0c4ece6b16fa222c620ff2254f84
Contents?: true
Size: 1003 Bytes
Versions: 12
Compression:
Stored size: 1003 Bytes
Contents
require 'acceptance_helper' describe "two_associations WiceGrid", :type => :request, :js => true do before :each do visit '/two_associations' end it "should filter the two associations independantly" do fill_in('grid_f_companies_name', :with => 'MNU') find(:css, '#grid_submit_grid_icon').click within '.pagination_status' do expect(page).to have_content('1-2 / 2') end fill_in('grid_f_suppliers_projects_name', :with => 'Coders') find(:css, '#grid_submit_grid_icon').click within '.pagination_status' do expect(page).to have_content('1-1 / 1') end fill_in('grid_f_companies_name', :with => '') find(:css, '#grid_submit_grid_icon').click within '.pagination_status' do expect(page).to have_content('1-2 / 2') end fill_in('grid_f_companies_name', :with => 'foo') find(:css, '#grid_submit_grid_icon').click within '.pagination_status' do expect(page).to have_content('0') end end end
Version data entries
12 entries across 12 versions & 2 rubygems