Sha256: aca304d38f1329d035f1b88415931fce58e5f009fa5479551d8cf1029b31d26c

Contents?: true

Size: 469 Bytes

Versions: 12

Compression:

Stored size: 469 Bytes

Contents

require 'spec_helper'

describe 'Breadcrumble::ActionView' do
  context '#render_breadcrumbs' do
    before do
      helper.stub!(:breadcrumbs).and_return([
        { name: 'root_name', url: '/root_url' },
        { name: 'test_name', url: '/test_url' }
      ])
    end
    subject { helper.render_breadcrumbs }
    it { should match('root_name') }
    it { should match('root_url') }
    it { should match('test_name') }
    it { should match('test_url') }
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
breadcrumble-4.0.0 spec/helpers/action_view_spec.rb
breadcrumble-3.0.7 spec/helpers/action_view_spec.rb
breadcrumble-3.0.6 spec/helpers/action_view_spec.rb
breadcrumble-3.0.5 spec/helpers/action_view_spec.rb
breadcrumble-3.0.4 spec/helpers/action_view_spec.rb
breadcrumble-3.0.3 spec/helpers/action_view_spec.rb
breadcrumble-3.0.2 spec/helpers/action_view_spec.rb
breadcrumble-3.0.1 spec/helpers/action_view_spec.rb
breadcrumble-3.0.0 spec/helpers/action_view_spec.rb
breadcrumble-3.0.0.beta spec/helpers/action_view_spec.rb
breadcrumble-2.0.1 spec/helpers/action_view_spec.rb
breadcrumble-2.0.0 spec/helpers/action_view_spec.rb