```ruby
require 'spec_helper'
describe "layouts/application" do
  before { pending; allow(view).to receive(:current_user).and_return(current_user) }

  let(:admin) { false }
  let(:current_user) { mock_model User, admin?: admin, full_name: "Batman", image_url: "none" }

  subject { render; Capybara.string(rendered) }

  it { is_expected.to_not have_link 'Admin' }
  it { is_expected.to have_link 'Sign out' }

  context "when the user is not signed in" do
    let(:current_user) { nil }
    it { is_expected.to_not have_link 'Sign out' }
  end

  context "when the user is an admin" do
    let(:admin) { true }
    it { is_expected.to have_link 'Admin' }
  end
end
```

Reduce number of pending specs
user
```ruby
require 'spec_helper'
describe "layouts/application" do
  before { allow(view).to receive(:current_user).and_return(current_user) }

  let(:admin) { false }
  let(:current_user) { mock_model User, admin?: admin, full_name: "Batman", image_url: "none" }

  subject { render; Capybara.string(rendered) }

  it { is_expected.to_not have_link 'Admin' }
  it { pending; is_expected.to have_link 'Sign out' }

  context "when the user is not signed in" do
    let(:current_user) { nil }
    it { is_expected.to_not have_link 'Sign out' }
  end

  context "when the user is an admin" do
    let(:admin) { true }
    it { pending; is_expected.to have_link 'Admin' }
  end
end
```
assistant