Sha256: 331cf886878b059f4994ccac16ae3d55a0e0b066bd118e6309ba79a0f8a98ddd
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
require 'spec_helper' describe DocSmoosher::Api do let :api do DocSmoosher::Api.new(name: 'test api') do |api| api.description = 'a test api example' end end describe 'DSL' do describe '#define_api' do it 'defines an api' do expect(api).not_to be_nil expect(api.name).to eql('test api') expect(api.description).to eql('a test api example') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doc_smoosher-0.1.0 | spec/lib/api_spec.rb |