Sha256: 49102d3fb746adcf713beac159560d32efb8ba26b291347289ed7aad4079d49b
Contents?: true
Size: 549 Bytes
Versions: 4
Compression:
Stored size: 549 Bytes
Contents
require 'spec_helper' require 'schedule_attributes/rule_parser' describe ScheduleAttributes::RuleParser do describe "class methods" do { "day" => ScheduleAttributes::RuleParser::Day, "week" => ScheduleAttributes::RuleParser::Week, "month" => ScheduleAttributes::RuleParser::Month, "year" => ScheduleAttributes::RuleParser::Year }. each do |key,parser_class| it "returns parser for #{key} interval units" do expect(ScheduleAttributes::RuleParser[key]).to eq(parser_class) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems