<NME> NavbarSpec.jsx
<BEF> ADDFILE
<MSG> Add basic `Navbar`

<DFF> @@ -0,0 +1,46 @@
+/** @jsx React.DOM */
+/*global describe, it, assert */
+
+var ReactTestUtils = require('react/lib/ReactTestUtils');
+var Nav            = require('../cjs/Navbar');
+
+describe('Nav', function () {
+
+  it('Should create nav element', function () {
+    var instance = ReactTestUtils.renderIntoDocument(
+          <Nav />
+        );
+    var nav = instance.getDOMNode();
+    assert.equal(nav.nodeName, 'NAV');
+    assert.ok(nav.className.match(/\bnavbar\b/));
+    assert.ok(nav.getAttribute('role'), 'navigation');
+  });
+
+  it('Should add fixedTop variation class', function () {
+    var instance = ReactTestUtils.renderIntoDocument(
+          <Nav fixedTop />
+        );
+    assert.ok(ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'navbar-fixed-top'));
+  });
+
+  it('Should add fixedBottom variation class', function () {
+    var instance = ReactTestUtils.renderIntoDocument(
+          <Nav fixedBottom />
+        );
+    assert.ok(ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'navbar-fixed-bottom'));
+  });
+
+  it('Should add staticTop variation class', function () {
+    var instance = ReactTestUtils.renderIntoDocument(
+          <Nav staticTop />
+        );
+    assert.ok(ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'navbar-static-top'));
+  });
+
+  it('Should add inverse variation class', function () {
+    var instance = ReactTestUtils.renderIntoDocument(
+          <Nav inverse />
+        );
+    assert.ok(ReactTestUtils.findRenderedDOMComponentWithClass(instance, 'navbar-inverse'));
+  });
+});

{'addition_count': 46, 'commit_subject': 'Add basic `Navbar`', 'deletion_count': 0, 'file_extension': '.jsx', 'lang': 'jsx', 'license': 'mit', 'repo_name': 'react-bootstrap/react-bootstrap'}