Sha256: 838fbd316cc609789e36fb5bb5f58274707f8916f724af2c0c0c1ea10746e110
Contents?: true
Size: 853 Bytes
Versions: 5
Compression:
Stored size: 853 Bytes
Contents
require 'spec_helper' describe 'Check All' do before (:all) do @document_list = ['a','b','c'] @batch_size_on_other_page = 0 @max_batch_size = 100 end it 'should render batch edits actions' do allow(controller).to receive(:controller_name).and_return('batch_edits') controller.prepend_view_path "app/views/batch_edits" html = render partial: 'batch_edits/check_all' html.should have_selector("li[data-behavior='batch-edit-select-abc']") end it 'should render actions for my items' do allow(controller).to receive(:controller_name).and_return('my') controller.prepend_view_path "app/views/my" html = render partial: 'batch_edits/check_all' html.should have_selector("li[data-behavior='batch-edit-select-none']") html.should have_selector("li[data-behavior='batch-edit-select-page']") end end
Version data entries
5 entries across 5 versions & 1 rubygems