Sha256: 3a168b13160931bf245444e6a6ba2b831ea3060a5e213d27ac1c70ca2030e304
Contents?: true
Size: 725 Bytes
Versions: 3
Compression:
Stored size: 725 Bytes
Contents
require_relative '../../spec_helper' require_relative '../../../lib/passages/mount_route' module Passages describe MountRoute do subject { described_class.new(anything, anything) } describe '#initialize' do it 'sets the @app ivar' do expect(subject.instance_variable_get(:@app)).to_not be_nil end end describe '#engine_name' do it 'calls name on the app ivar' do expect(subject.instance_variable_get(:@app)).to receive(:name) subject.engine_name end end %i[internal? path].each do |method| describe "##{method}" do it "responds to #{method}" do expect(subject).to respond_to(method) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
passages-3.0.0 | spec/lib/passages/mount_route_spec.rb |
passages-2.2.0 | spec/lib/passages/mount_route_spec.rb |
passages-2.1.0 | spec/lib/passages/mount_route_spec.rb |