Sha256: 5747769bbe9437ff9051cdf55b57f4a5f772ff211462919e68d36acbb0b7b79e
Contents?: true
Size: 733 Bytes
Versions: 1
Compression:
Stored size: 733 Bytes
Contents
require_relative 'spec_helper' require './spec/support/dummy_api' describe InstaSwag do subject { InstaSwag } context '::VERSION' do it 'has a version' do expect(subject::VERSION).to eq "0.1.1" end end context '#self.for' do let(:api) { double('api') } let(:settings) { double('settings', {assets_path: "/assets", prefix_path: "/prefix", index_path: "/index.html"}) } it "sends the settings to the other apps" do allow(InstaSwag::Settings).to receive(:new).with(api, settings).and_return(settings) expect(InstaSwag::DocumentationApp).to receive(:create).with(api, settings) expect(InstaSwag::StaticFiles).to receive(:create).with(settings) subject.for(api, settings) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
insta_swag-0.1.1 | spec/insta_swag_spec.rb |