tabnav 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/tabnav/helper.rb +1 -0
- data/spec/tabnav/integration_spec.rb +13 -0
- metadata +7 -7
data/README.rdoc
CHANGED
@@ -105,7 +105,7 @@ in /app/views/shared/_my_custom_tab.html.erb:
|
|
105
105
|
|
106
106
|
<div class="my_custom_class">
|
107
107
|
<%- if tab.has_link? -%>
|
108
|
-
<%= link_to tab.name, tab.
|
108
|
+
<%= link_to tab.name, tab.link_url %>
|
109
109
|
<%- else -%>
|
110
110
|
<span><%= tab.name %></span>
|
111
111
|
<%- end -%>
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
data/lib/tabnav/helper.rb
CHANGED
@@ -38,6 +38,19 @@ describe Tabnav::Helper, :type => :helper do
|
|
38
38
|
'<li class="heading"><span>Froobles Heading</span></li>' +
|
39
39
|
'<li><a href="/froobles" rel="http://foo.bar/" target="_blank">Froobles</a></li></ul>'
|
40
40
|
end
|
41
|
+
|
42
|
+
it "should return nil (avoid double render bug)" do
|
43
|
+
helper.render_tabnav do |n|
|
44
|
+
n.add_tab do |t|
|
45
|
+
t.named "Home"
|
46
|
+
t.links_to "/"
|
47
|
+
end
|
48
|
+
n.add_tab do |t|
|
49
|
+
t.named "Froobles"
|
50
|
+
t.links_to "/froobles"
|
51
|
+
end
|
52
|
+
end.should == nil
|
53
|
+
end
|
41
54
|
end
|
42
55
|
|
43
56
|
describe "highlighting logic" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabnav
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Unboxed
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-08-12 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -126,8 +126,8 @@ signing_key:
|
|
126
126
|
specification_version: 3
|
127
127
|
summary: Rails helper for generating navbars
|
128
128
|
test_files:
|
129
|
-
- spec/
|
129
|
+
- spec/tabnav/tab_spec.rb
|
130
130
|
- spec/tabnav/helper_spec.rb
|
131
|
-
- spec/tabnav/integration_spec.rb
|
132
131
|
- spec/tabnav/navbar_spec.rb
|
133
|
-
- spec/tabnav/
|
132
|
+
- spec/tabnav/integration_spec.rb
|
133
|
+
- spec/spec_helper.rb
|