Sha256: 6305ff35194639c710a4fececc5cf0a68951c38709997c3fef2598c15f079bd5

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

require 'spec_helper'

describe Helena::ApplicationController do
  describe '.add_breadcrumb' do
    it 'names an empty element "Untitled"' do
      application_controller = Helena::ApplicationController.new

      application_controller.add_breadcrumb('')
      breadcrumbs = application_controller.add_breadcrumb(nil)

      expect(breadcrumbs.first.name).to eq 'Untitled'
      expect(breadcrumbs.last.name).to eq 'Untitled'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
helena-0.3.3 spec/controllers/helena/application_controller_spec.rb