Sha256: 020d234a87694d4917ddd17af660fbcdc56fce3a0ee6d75358a0a09dda342ad6
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Breadcrumby::Home, '.show_path' do context 'when route :root_path is not present' do subject { described_class.new view } let!(:view) { double } it 'returns the root path' do expect(subject.show_path).to eq '/' end end context 'when route :root_path is present' do subject { described_class.new view } let!(:view) { double root_path: :root_path } it 'returns the :root_path value' do expect(subject.show_path).to eq :root_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
breadcrumby-0.1.0 | spec/lib/breadcrumby/models/home/show_path_spec.rb |