Sha256: ac6acafa5986276b5e8590426bbb2343a246f6f691dc911803c6b48e48f1f442

Contents?: true

Size: 615 Bytes

Versions: 13

Compression:

Stored size: 615 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

13 entries across 13 versions & 1 rubygems

Version Path
rocketjob_mission_control-6.1.0 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-6.0.7 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-6.0.6 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-6.0.5 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-6.0.4 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-6.0.3 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-6.0.2 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-6.0.1 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-6.0.0 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-6.0.0.beta test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-5.0.1 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-5.0.0 test/helpers/rocket_job_mission_control/pagination_helper_test.rb
rocketjob_mission_control-5.0.0.beta1 test/helpers/rocket_job_mission_control/pagination_helper_test.rb