We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ebd387 commit 1325f34Copy full SHA for 1325f34
spec/writers/slate_writer_spec.rb
@@ -15,6 +15,23 @@
15
end
16
17
18
+ describe "#write" do
19
+ let(:writer) { described_class.new(index, configuration) }
20
+
21
+ before do
22
+ template_dir = File.join(configuration.template_path, "rspec_api_documentation")
23
+ FileUtils.mkdir_p(template_dir)
24
+ File.open(File.join(template_dir, "markdown_index.mustache"), "w+") { |f| f << "{{ mustache }}" }
25
+ FileUtils.mkdir_p(configuration.docs_dir)
26
+ end
27
28
+ it "should write the index" do
29
+ writer.write
30
+ index_file = File.join(configuration.docs_dir, "index.html.md")
31
+ expect(File.exists?(index_file)).to be_truthy
32
33
34
35
context 'instance methods' do
36
let(:writer) { described_class.new(index, configuration) }
37
0 commit comments