Skip to content

Commit

Permalink
Merge c168d96 into cc759b5
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Jan 13, 2019
2 parents cc759b5 + c168d96 commit 18c4ca9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 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

0 comments on commit 18c4ca9

Please sign in to comment.