Sha256: f22f92696d053a2d678e2bf0021f412297127f85511cfd6d8eb7ee1e36ed3b26

Contents?: true

Size: 670 Bytes

Versions: 4

Compression:

Stored size: 670 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

module Rack::Bug
  describe RailsInfoPanel do
    before do
      header "rack-bug.panel_classes", [RailsInfoPanel]
    end
    
    describe "heading" do
      it "displays the Rails version" do
        Rails.stub!(:version => "v2.3.0")
        response = get "/"
        response.should have_heading("Rails v2.3.0")
      end
    end

    describe "content" do
      it "displays the Rails::Info properties" do
        Rails::Info.stub!(:properties => [["Name", "Value"]])
        response = get "/"
        response.should have_row("#rails_info", "Name", "Value")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 4 rubygems

Version Path
jeroenvandijk-rack-bug-0.2.1 spec/rack/bug/panels/rails_info_panel_spec.rb
perfectline-rack-bug-0.1.1 spec/rack/bug/panels/rails_info_panel_spec.rb
wested-rack-bug-0.2.2.1 spec/rack/bug/panels/rails_info_panel_spec.rb
rack-bug-0.2.1 spec/rack/bug/panels/rails_info_panel_spec.rb