Sha256: a266b8a7e241bc6a43a3f3814aafc3b23631cc44bcc28870dea80129a5301d03

Contents?: true

Size: 612 Bytes

Versions: 103

Compression:

Stored size: 612 Bytes

Contents

require 'rails_helper'

describe Navbar do
  let(:user) { create :user }
  let(:instancia) { described_class.new(user) }

  describe '#add_html' do
    subject { instancia.add_html(some_html) }

    let(:some_html) { '<p>Hola</p>' }

    it do
      expect { subject }.to(change(instancia, :extensiones))
    end
  end

  describe '#add_item' do
    subject { instancia.add_item('key', some_item) }

    let(:some_item) do
      {
        name: 'Título',
        path: 'root_path',
        policy: 'true'
      }
    end

    it do
      expect { subject }.to(change { instancia.bar('key') })
    end
  end
end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
pg_rails-7.0.8.pre.alpha.47 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.46 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.45 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.44 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.43 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.42 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.41 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.40 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.39 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.38 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.37 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.36 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.35 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.34 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.33 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.32 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.31 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.30 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.29 pg_layout/spec/lib/navbar_spec.rb
pg_rails-7.0.8.pre.alpha.28 pg_layout/spec/lib/navbar_spec.rb