Sha256: fceea3da4a5be25d0d289fd8d0d0e8c5c13bb1c2b47dfb8d489637317790f025
Contents?: true
Size: 585 Bytes
Versions: 24
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper' describe Apiary::Command::Preview do let(:command) do opts = { path: "#{File.expand_path File.dirname(__FILE__)}/../../fixtures/apiary.apib" } Apiary::Command::Preview.new(opts) end it 'check tmp path if contains filename' do expect(command.preview_path).to end_with('apiary-preview.html') end it 'shoud contain html5 doctype' do expect(command.generate).to include('<!DOCTYPE html>') end it 'should contain embed javascript' do expect(command.generate).to include('https://api.apiary.io/seeds/embed.js') end end
Version data entries
24 entries across 24 versions & 1 rubygems