Skip to content

Commit

Permalink
Add test to preview path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladislav Prskavec committed Mar 20, 2015
1 parent ea7a799 commit f736d3c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/command/preview_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'spec_helper'

describe Apiary::Command::Preview do

it 'check tmp path if contains filename' do
opts = {}
command = Apiary::Command::Preview.new(opts)
expect(command.preview_path('apiary.apib')).to end_with('apiary.apib-preview.html')
end

end

0 comments on commit f736d3c

Please sign in to comment.