Skip to content

Commit

Permalink
Add spec for alphagov.yml
Browse files Browse the repository at this point in the history
This adds a test for our config. Makes sure that we don't put in
invalid YAML.
  • Loading branch information
tijmenb committed Apr 4, 2017
1 parent f1911ae commit 9d0c1a6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/config_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'spec_helper'

describe 'config/alphagov.yml' do
it 'is valid YAML' do
config = YAML.load_file('config/alphagov.yml')

expect(config).to be_a(Hash)
end
end

0 comments on commit 9d0c1a6

Please sign in to comment.