From 5630072590d016a0e97188023b3f69d8f564b7f2 Mon Sep 17 00:00:00 2001 From: Yuki Nishijima Date: Sat, 2 Jan 2016 08:34:29 +0000 Subject: [PATCH] Remove unused code The master branch no longer has support for Rails < 3.1. --- spec/helpers/tags_spec.rb | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/spec/helpers/tags_spec.rb b/spec/helpers/tags_spec.rb index 28e6609..0231668 100644 --- a/spec/helpers/tags_spec.rb +++ b/spec/helpers/tags_spec.rb @@ -52,24 +52,16 @@ describe 'Kaminari::Helpers' do context "for first page" do subject { Tag.new(helper, :param_name => "user[page]").page_url_for(1) } - if ActiveSupport::VERSION::STRING < "3.1.0" - it { should_not match(/user\[page\]=\d+/) } - it { should match(/user\[scope\]=active/) } - else - it { should_not match(/user%5Bpage%5D=\d+/) } # not match user[page]=\d+ - it { should match(/user%5Bscope%5D=active/) } # match user[scope]=active - end + + it { should_not match(/user%5Bpage%5D=\d+/) } # not match user[page]=\d+ + it { should match(/user%5Bscope%5D=active/) } # match user[scope]=active end context "for other page" do subject { Tag.new(helper, :param_name => "user[page]").page_url_for(2) } - if ActiveSupport::VERSION::STRING < "3.1.0" - it { should match(/user\[page\]=2/) } - it { should match(/user\[scope\]=active/) } - else - it { should match(/user%5Bpage%5D=2/) } # match user[page]=2 - it { should match(/user%5Bscope%5D=active/) } # match user[scope]=active - end + + it { should match(/user%5Bpage%5D=2/) } # match user[page]=2 + it { should match(/user%5Bscope%5D=active/) } # match user[scope]=active end end