Skip to content

Commit

Permalink
Merge pull request #10 from curationexperts/doc-views
Browse files Browse the repository at this point in the history
Move importer_documentation views
  • Loading branch information
little9 committed Aug 6, 2019
2 parents 76c1d99 + ed802b9 commit 9e7a1f0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/zizia/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Zizia
VERSION = '2.1.0.alpha.05'
VERSION = '2.1.0.alpha.06'
end
9 changes: 0 additions & 9 deletions spec/views/importer_documentation/guide.html.erb_spec.rb

This file was deleted.

13 changes: 13 additions & 0 deletions spec/views/zizia/importer_documentation/guide.html.erb_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true
require 'spec_helper'

RSpec.describe "zizia/importer_documentation/guide.html.erb", type: :view do
before do
view.stub(:render_guide).and_return('<h1 id="title">Title</h1>')
end

it 'renders as html' do
render
expect(rendered).to match(/<h1 id="title">Title<\/h1>/)
end
end

0 comments on commit 9e7a1f0

Please sign in to comment.