Sha256: 5aa84feb90c32713d6d2114351e966a2331e36554a39543e2a452e2c2e220913

Contents?: true

Size: 543 Bytes

Versions: 23

Compression:

Stored size: 543 Bytes

Contents

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rubicure-2.1.5 spec/config/series_checker_spec.rb
rubicure-2.1.4 spec/config/series_checker_spec.rb
rubicure-2.1.3 spec/config/series_checker_spec.rb
rubicure-2.1.2 spec/config/series_checker_spec.rb
rubicure-2.1.1 spec/config/series_checker_spec.rb
rubicure-2.1.0 spec/config/series_checker_spec.rb
rubicure-2.0.1 spec/config/series_checker_spec.rb
rubicure-2.0.0 spec/config/series_checker_spec.rb
rubicure-1.3.5 spec/config/series_checker_spec.rb
rubicure-1.3.4 spec/config/series_checker_spec.rb
rubicure-1.3.3 spec/config/series_checker_spec.rb
rubicure-1.3.2 spec/config/series_checker_spec.rb
rubicure-1.3.1 spec/config/series_checker_spec.rb
rubicure-1.3.0 spec/config/series_checker_spec.rb
rubicure-1.2.6 spec/config/series_checker_spec.rb
rubicure-1.2.5 spec/config/series_checker_spec.rb
rubicure-1.2.4 spec/config/series_checker_spec.rb
rubicure-1.2.3 spec/config/series_checker_spec.rb
rubicure-1.2.2 spec/config/series_checker_spec.rb
rubicure-1.2.1 spec/config/series_checker_spec.rb