Sha256: 63c569d9828db46e29d6671051de1cc98d6fbd0474886367deb09a9fe0cb355e

Contents?: true

Size: 838 Bytes

Versions: 21

Compression:

Stored size: 838 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
    controller.stub(: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 dashboard actions' do
    controller.stub(:controller_name).and_return('dashboard')
    controller.prepend_view_path "app/views/dashboard"
    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

21 entries across 21 versions & 1 rubygems

Version Path
sufia-4.0.0.beta3 spec/views/batch_edits/check_all_spec.rb
sufia-4.0.0.beta2 spec/views/batch_edits/check_all_spec.rb
sufia-4.0.0.beta1 spec/views/batch_edits/check_all_spec.rb
sufia-3.7.2 spec/views/batch_edits/check_all_spec.rb
sufia-3.7.1 spec/views/batch_edits/check_all_spec.rb
sufia-3.7.0 spec/views/batch_edits/check_all_spec.rb
sufia-3.6.1 spec/views/batch_edits/check_all_spec.rb
sufia-3.6.0 spec/views/batch_edits/check_all_spec.rb
sufia-3.5.0 spec/views/batch_edits/check_all_spec.rb
sufia-3.4.0 spec/views/batch_edits/check_all_spec.rb
sufia-3.4.0.rc4 spec/views/batch_edits/check_all_spec.rb
sufia-3.4.0.rc3 spec/views/batch_edits/check_all_spec.rb
sufia-3.3.1 spec/views/batch_edits/check_all_spec.rb
sufia-3.4.0.rc2 spec/views/batch_edits/check_all_spec.rb
sufia-3.4.0.rc1 spec/views/batch_edits/check_all_spec.rb
sufia-3.3.0 spec/views/batch_edits/check_all_spec.rb
sufia-3.2.1 spec/views/batch_edits/check_all_spec.rb
sufia-3.1.3 spec/views/batch_edits/check_all_spec.rb
sufia-3.1.2 spec/views/batch_edits/check_all_spec.rb
sufia-3.1.1 spec/views/batch_edits/check_all_spec.rb