Skip to content

Commit

Permalink
Merge pull request #194 from sue445/feature/add_start_and_end_date_test
Browse files Browse the repository at this point in the history
Add test for started_date and ended_date
  • Loading branch information
sue445 committed Jan 13, 2019
2 parents cc759b5 + c168d96 commit aef6612
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 aef6612

Please sign in to comment.