navigatrix 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- data/README.md +108 -7
- data/lib/navigatrix.rb +23 -0
- data/lib/navigatrix/builder.rb +69 -0
- data/lib/navigatrix/configuration.rb +10 -0
- data/lib/navigatrix/item.rb +1 -1
- data/lib/navigatrix/renderer.rb +20 -14
- data/lib/navigatrix/rendering/strategies/bootstrap/navbar.rb +27 -23
- data/lib/navigatrix/rendering/strategies/bootstrap/tabs.rb +10 -6
- data/lib/navigatrix/rendering/strategies/content_helpers.rb +16 -0
- data/lib/navigatrix/rendering/strategies/html_attributes.rb +27 -0
- data/lib/navigatrix/rendering/strategies/item.rb +102 -0
- data/lib/navigatrix/rendering/strategies/list.rb +33 -89
- data/lib/navigatrix/rendering/strategy_factory.rb +28 -0
- data/lib/navigatrix/version.rb +1 -1
- data/spec/integration/documentation_spec.rb +154 -0
- data/spec/item_builder_spec.rb +120 -0
- data/spec/item_spec.rb +1 -3
- data/spec/list_builder_spec.rb +32 -0
- data/spec/renderer_spec.rb +23 -20
- data/spec/{strategies → rendering/strategies}/bootstrap/navbar_spec.rb +2 -4
- data/spec/{strategies → rendering/strategies}/bootstrap/tabs_spec.rb +1 -3
- data/spec/rendering/strategies/list_spec.rb +13 -0
- data/spec/rendering/strategy_factory_spec.rb +58 -0
- data/spec/spec_helper.rb +5 -0
- data/spec/support/list_rendering_strategy.rb +11 -5
- metadata +37 -21
- data/spec/strategies/list_spec.rb +0 -11
@@ -1,11 +0,0 @@
|
|
1
|
-
require "capybara"
|
2
|
-
require File.expand_path("../../support/list_rendering_strategy", __FILE__)
|
3
|
-
require File.expand_path("../../../lib/navigatrix/rendering/strategies/list", __FILE__)
|
4
|
-
|
5
|
-
module Navigatrix::Rendering::Strategies
|
6
|
-
describe List do
|
7
|
-
include ListRenderingStrategy
|
8
|
-
|
9
|
-
it_should_behave_like "a list rendering strategy"
|
10
|
-
end
|
11
|
-
end
|