Sha256: a0f200685a06dc25e52449cbfb2d61c63ef24dc3ef26dc141219ae59b32ff8f5

Contents?: true

Size: 557 Bytes

Versions: 11

Compression:

Stored size: 557 Bytes

Contents

require 'rails_helper'

module RocketJobMissionControl
  RSpec.describe PaginationHelper, type: :helper do
    describe '#page_nav_disabled_class' do

      context 'when the current position equals the boundary' do
        it 'returns disabled' do
          expect(helper.page_nav_disabled_class(0, 0)).to eq('disabled')
        end
      end

      context 'when the current position is NOT equal to the boundary' do
        it 'returns blank' do
          expect(helper.page_nav_disabled_class(4, 0)).to be_blank
        end
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rocketjob_mission_control-3.0.0.rc1 spec/helpers/pagination_helper_spec.rb
rocketjob_mission_control-2.1.1 spec/helpers/pagination_helper_spec.rb
rocketjob_mission_control-2.1.0 spec/helpers/pagination_helper_spec.rb
rocketjob_mission_control-2.0.0 spec/helpers/pagination_helper_spec.rb
rocketjob_mission_control-2.0.0.rc2 spec/helpers/pagination_helper_spec.rb
rocketjob_mission_control-2.0.0.rc1 spec/helpers/pagination_helper_spec.rb
rocketjob_mission_control-1.2.4 spec/helpers/pagination_helper_spec.rb
rocketjob_mission_control-1.2.3 spec/helpers/pagination_helper_spec.rb
rocketjob_mission_control-1.2.2 spec/helpers/pagination_helper_spec.rb
rocketjob_mission_control-1.2.1 spec/helpers/pagination_helper_spec.rb
rocketjob_mission_control-1.2.0 spec/helpers/pagination_helper_spec.rb