|
|
|
@ -1,6 +1,5 @@ |
|
|
|
require "rails_helper" |
|
|
|
require "rails_helper" |
|
|
|
require "timecop" |
|
|
|
require "timecop" |
|
|
|
include CollectionTimeHelper |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RSpec.describe FiltersHelper do |
|
|
|
RSpec.describe FiltersHelper do |
|
|
|
describe "#filter_selected?" do |
|
|
|
describe "#filter_selected?" do |
|
|
|
@ -249,6 +248,7 @@ RSpec.describe FiltersHelper do |
|
|
|
end |
|
|
|
end |
|
|
|
Timecop.return |
|
|
|
Timecop.return |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "has the correct options" do |
|
|
|
it "has the correct options" do |
|
|
|
expect(collection_year_options).to eq( |
|
|
|
expect(collection_year_options).to eq( |
|
|
|
{ |
|
|
|
{ |
|
|
|
|