Sha256: e4ee2f7c4ed4ddbb3aabe383121d4cd65ae3799f1bb68bc3f300d94c5f74f660
Contents?: true
Size: 593 Bytes
Versions: 3
Compression:
Stored size: 593 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
apiaryio-0.4.2 | spec/apiary/command/preview_spec.rb |
apiaryio-0.4.1 | spec/apiary/command/preview_spec.rb |
apiaryio-0.4.0-x86_64-darwin-13 | spec/apiary/command/preview_spec.rb |