read the site metafields schema file from the filesystem
did
committed Jan 24, 2016
commit 58b36d94bd1bf24bcd013a278e66c31e87f44e7f
Showing 2
changed files with
2 additions
and 1 deletions
spec/fixtures/default/config/metafields_schema.yml
+1
-0
| @@ | @@ -13,6 +13,7 @@ Github: |
| name: | |
| fr: "Url de l'API" | |
| type: string | |
| + | hint: "JSON API endpoint" |
| default: https://api.github.com/repos/locomotivecms/engine/issues?state=opened | |
| "Expire in": | |
| name: | |
spec/unit/adapters/filesystem/sanitizers/site_spec.rb
+1
-1
| @@ | @@ -38,7 +38,7 @@ describe Locomotive::Steam::Adapters::Filesystem::Sanitizers::Site do |
| expect(subject[1][:name]).to eq(default: 'Github') | |
| expect(subject[1][:position]).to eq 0 | |
| expect(subject[1][:fields].count).to eq 2 | |
| - | expect(subject[1][:fields][0]).to eq(name: { default: 'API url', fr: "Url de l'API" }, type: 'string', default: 'https://api.github.com/repos/locomotivecms/engine/issues?state=opened') |
| + | expect(subject[1][:fields][0]).to eq(name: { default: 'API url', fr: "Url de l'API" }, type: 'string', hint: { default: 'JSON API endpoint' }, default: 'https://api.github.com/repos/locomotivecms/engine/issues?state=opened') |
| end | |
| end | |