test that version is included as HTML meta tag

This commit is contained in:
jelhan 2015-12-08 11:27:41 +01:00
parent db038b1e57
commit c13d55ec01

View file

@ -0,0 +1,13 @@
import { test } from 'qunit';
import moduleForAcceptance from 'croodle/tests/helpers/module-for-acceptance';
moduleForAcceptance('Acceptance | build info');
test('version is included as html meta tag', function(assert) {
visit('/');
andThen(function() {
assert.ok($('head meta[name="build-info"]'), 'tag exists');
assert.ok($('head meta[name="build-info"]').match(/^version=v\d[\d\.]+\d(\+[\da-z]{7})?$/) !== null, 'format is correct');
});
});