Sha256: a0db32331699e6b7458bf7cca12bc2f335e0c1af101f7df190fe19f16b5131c3

Contents?: true

Size: 617 Bytes

Versions: 11

Compression:

Stored size: 617 Bytes

Contents

require_relative '../../test_helper'

module RocketJobMissionControl
  class PaginationHelperTest < ActionView::TestCase
    describe PaginationHelper do

      describe '#page_nav_disabled_class' do
        describe 'when the current position equals the boundary' do
          it 'returns disabled' do
            assert_equal 'disabled', page_nav_disabled_class(0, 0)
          end
        end

        describe 'when the current position is NOT equal to the boundary' do
          it 'returns blank' do
            assert page_nav_disabled_class(4, 0).blank?
          end
        end

      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rocketjob_mission_control-4.3.0 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-4.2.1 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-4.2.0 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-4.1.0 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-4.0.0 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-3.2.0 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-3.1.0 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-3.0.3 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-3.0.2 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-3.0.1 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-3.0.0 test/helpers/rocket_job_mission_control/pagination_helper_test.rb