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