Sha256: 2482de8a0837c91458ec6460366027f7b37065024b70b729edca2fac4334b445

Contents?: true

Size: 560 Bytes

Versions: 10

Compression:

Stored size: 560 Bytes

Contents

require 'spec_helper'
require 'haml'

describe 'pugin/layouts/pugin.html.haml', type: :view do
  context 'with a fully implemented person' do
    let(:person) { double('Grom::Node') }

    before :each do
      allow(person).to receive(:name).and_return('Jane Smith')
      allow(person).to receive(:position).and_return('Minister for Tests')
      allow(person).to receive(:id).and_return('123')
    end

    it 'renders HAML without errors' do
      render
      expect(rendered).to have_title(I18n.t('.pugin.layouts.pugin.website_brand'))
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pugin-0.7.0 spec/views/pugin/layouts/pugin.html.haml_spec.rb
pugin-0.6.4 spec/views/pugin/layouts/pugin.html.haml_spec.rb
pugin-0.6.3 spec/views/pugin/layouts/pugin.html.haml_spec.rb
pugin-0.6.2 spec/views/pugin/layouts/pugin.html.haml_spec.rb
pugin-0.6.1 spec/views/pugin/layouts/pugin.html.haml_spec.rb
pugin-0.6.0 spec/views/pugin/layouts/pugin.html.haml_spec.rb
pugin-0.5.5.pre spec/views/pugin/layouts/pugin.html.haml_spec.rb
pugin-0.5.4 spec/views/pugin/layouts/pugin.html.haml_spec.rb
pugin-0.5.2 spec/views/pugin/layouts/pugin.html.haml_spec.rb
pugin-0.5.1 spec/views/pugin/layouts/pugin.html.haml_spec.rb