Sha256: 8a72c73ccdcb55860835b52b079351e47315e47ab883672a9aafa6cdbd1e2668
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) module PlaygroundBookLint describe PageLinter do include FakeFS::SpecHelpers let(:page_linter) { PageLinter.new(page_manifest_linter) } let(:page_manifest_linter) { double(PageManifestLinter) } it 'fails if Contents.swift does not exist' do expect{ page_linter.lint() }.to raise_error(SystemExit) end it 'passes through to page_manifest_linter' do File.open('Contents.swift', 'w') { |f| f.write('') } expect(page_manifest_linter).to receive(:lint) expect{ page_linter.lint() }.to_not raise_error end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
playground-book-lint-0.0.1 | spec/playground_book_lint/page_linter_spec.rb |