Sha256: 2edf6345386204c9900e8921faf2200a781ca99f66699333e70037299a4138e3

Contents?: true

Size: 405 Bytes

Versions: 8

Compression:

Stored size: 405 Bytes

Contents

require 'spec_helper'

describe "layouts/application.html.erb" do
  include Devise::TestHelpers
  
  before(:each) do
    sign_in Factory(:user)
  end
  
  it "includes the helper" do
    view.should respond_to(:governor_header)
  end
  
  it "links to comment review page" do
    render
    rendered.should have_selector('a', :href => edit_comments_articles_path, :content => 'Manage Comments')
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
governor_comments-0.2.7 spec/views/layouts/application.html.erb_spec.rb
governor_comments-0.2.6 spec/views/layouts/application.html.erb_spec.rb
governor_comments-0.2.5 spec/views/layouts/application.html.erb_spec.rb
governor_comments-0.2.4 spec/views/layouts/application.html.erb_spec.rb
governor_comments-0.2.3 spec/views/layouts/application.html.erb_spec.rb
governor_comments-0.2.2 spec/views/layouts/application.html.erb_spec.rb
governor_comments-0.2.1 spec/views/layouts/application.html.erb_spec.rb
governor_comments-0.2.0 spec/views/layouts/application.html.erb_spec.rb