Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Navbar is now a subclass of Tab

  • Loading branch information...
commit 70e09ba54192787c160afea44ed0478ed2db70de 1 parent 62313cf
Alex Tomlins authored
Showing with 7 additions and 1 deletion.
  1. +1 −1  lib/tabnav/navbar.rb
  2. +6 −0 spec/tabnav/navbar_spec.rb
View
2  lib/tabnav/navbar.rb
@@ -1,5 +1,5 @@
module Tabnav
- class Navbar
+ class Navbar < Tab
def initialize(template, params, options = {}) # :nodoc:
@template = template
@params = params
View
6 spec/tabnav/navbar_spec.rb
@@ -70,6 +70,12 @@
end
end
+ describe "Tab behaviour" do
+ it "should be a subclass of Tab" do
+ Tabnav::Navbar.new(nil, nil).should be_a(Tabnav::Tab)
+ end
+ end
+
describe "render_navbar" do
before :each do
@template = ActionView::Base.new()
Please sign in to comment.
Something went wrong with that request. Please try again.