diff --git a/spec/config/series_checker_spec.rb b/spec/config/series_checker_spec.rb new file mode 100644 index 0000000..ba90e36 --- /dev/null +++ b/spec/config/series_checker_spec.rb @@ -0,0 +1,19 @@ +describe "config/series.yml" do # rubocop:disable RSpec/DescribeClass + series = YAML.load_file("#{spec_dir}/../config/series.yml") + + series.values.uniq {|attributes| attributes["series_name"] }.each do |attributes| + context attributes["title"] do + describe "started_date" do + subject { attributes["started_date"] } + + it { should be_sunday } + end + + describe "ended_date", if: attributes["ended_date"] do + subject { attributes["ended_date"] } + + it { should be_sunday } + end + end + end +end