namey 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +5 -2
- data/Gemfile +0 -2
- data/LICENSE +21 -0
- data/bin/namey-load-data +1 -1
- data/lib/namey/generator.rb +8 -6
- data/lib/namey/version.rb +1 -1
- data/namey.gemspec +4 -10
- data/spec/generator_spec.rb +23 -12
- data/specs.watchr +60 -0
- metadata +27 -100
- data/api/Gemfile +0 -12
- data/api/config.ru.example +0 -10
- data/api/namey_app.rb +0 -78
- data/api/public/LICENSE +0 -176
- data/api/public/Makefile +0 -30
- data/api/public/README.md +0 -105
- data/api/public/ajax-loader.gif +0 -0
- data/api/public/api.js +0 -90
- data/api/public/bootstrap.css +0 -2467
- data/api/public/bootstrap.min.css +0 -356
- data/api/public/docs/assets/css/docs.css +0 -317
- data/api/public/docs/assets/ico/bootstrap-apple-114x114.png +0 -0
- data/api/public/docs/assets/ico/bootstrap-apple-57x57.png +0 -0
- data/api/public/docs/assets/ico/bootstrap-apple-72x72.png +0 -0
- data/api/public/docs/assets/ico/favicon.ico +0 -0
- data/api/public/docs/assets/img/bird.png +0 -0
- data/api/public/docs/assets/img/browsers.png +0 -0
- data/api/public/docs/assets/img/example-diagram-01.png +0 -0
- data/api/public/docs/assets/img/example-diagram-02.png +0 -0
- data/api/public/docs/assets/img/example-diagram-03.png +0 -0
- data/api/public/docs/assets/img/grid-18px.png +0 -0
- data/api/public/docs/assets/img/twitter-logo-no-bird.png +0 -0
- data/api/public/docs/assets/js/application.js +0 -52
- data/api/public/docs/assets/js/google-code-prettify/prettify.css +0 -94
- data/api/public/docs/assets/js/google-code-prettify/prettify.js +0 -28
- data/api/public/docs/index.html +0 -2037
- data/api/public/docs/javascript.html +0 -798
- data/api/public/examples/container-app.html +0 -119
- data/api/public/examples/fluid.html +0 -122
- data/api/public/examples/hero.html +0 -79
- data/api/public/js/bootstrap-alerts.js +0 -113
- data/api/public/js/bootstrap-buttons.js +0 -62
- data/api/public/js/bootstrap-dropdown.js +0 -55
- data/api/public/js/bootstrap-modal.js +0 -260
- data/api/public/js/bootstrap-popover.js +0 -86
- data/api/public/js/bootstrap-scrollspy.js +0 -107
- data/api/public/js/bootstrap-tabs.js +0 -80
- data/api/public/js/bootstrap-twipsy.js +0 -310
- data/api/public/js/tests/index.html +0 -40
- data/api/public/js/tests/unit/bootstrap-alerts.js +0 -41
- data/api/public/js/tests/unit/bootstrap-buttons.js +0 -42
- data/api/public/js/tests/unit/bootstrap-dropdown.js +0 -52
- data/api/public/js/tests/unit/bootstrap-modal.js +0 -151
- data/api/public/js/tests/unit/bootstrap-popover.js +0 -76
- data/api/public/js/tests/unit/bootstrap-scrollspy.js +0 -31
- data/api/public/js/tests/unit/bootstrap-tabs.js +0 -77
- data/api/public/js/tests/unit/bootstrap-twipsy.js +0 -81
- data/api/public/js/tests/vendor/qunit.css +0 -232
- data/api/public/js/tests/vendor/qunit.js +0 -1510
- data/api/public/lib/bootstrap.less +0 -26
- data/api/public/lib/forms.less +0 -479
- data/api/public/lib/mixins.less +0 -222
- data/api/public/lib/patterns.less +0 -1060
- data/api/public/lib/reset.less +0 -141
- data/api/public/lib/scaffolding.less +0 -137
- data/api/public/lib/tables.less +0 -224
- data/api/public/lib/type.less +0 -187
- data/api/public/lib/variables.less +0 -60
- data/api/public/namey.css +0 -33
- data/api/public/ui.js +0 -55
- data/api/views/index.erb +0 -203
@@ -1,80 +0,0 @@
|
|
1
|
-
/* ========================================================
|
2
|
-
* bootstrap-tabs.js v1.4.0
|
3
|
-
* http://twitter.github.com/bootstrap/javascript.html#tabs
|
4
|
-
* ========================================================
|
5
|
-
* Copyright 2011 Twitter, Inc.
|
6
|
-
*
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
-
* you may not use this file except in compliance with the License.
|
9
|
-
* You may obtain a copy of the License at
|
10
|
-
*
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
*
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
* See the License for the specific language governing permissions and
|
17
|
-
* limitations under the License.
|
18
|
-
* ======================================================== */
|
19
|
-
|
20
|
-
|
21
|
-
!function( $ ){
|
22
|
-
|
23
|
-
"use strict"
|
24
|
-
|
25
|
-
function activate ( element, container ) {
|
26
|
-
container
|
27
|
-
.find('> .active')
|
28
|
-
.removeClass('active')
|
29
|
-
.find('> .dropdown-menu > .active')
|
30
|
-
.removeClass('active')
|
31
|
-
|
32
|
-
element.addClass('active')
|
33
|
-
|
34
|
-
if ( element.parent('.dropdown-menu') ) {
|
35
|
-
element.closest('li.dropdown').addClass('active')
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
function tab( e ) {
|
40
|
-
var $this = $(this)
|
41
|
-
, $ul = $this.closest('ul:not(.dropdown-menu)')
|
42
|
-
, href = $this.attr('href')
|
43
|
-
, previous
|
44
|
-
, $href
|
45
|
-
|
46
|
-
if ( /^#\w+/.test(href) ) {
|
47
|
-
e.preventDefault()
|
48
|
-
|
49
|
-
if ( $this.parent('li').hasClass('active') ) {
|
50
|
-
return
|
51
|
-
}
|
52
|
-
|
53
|
-
previous = $ul.find('.active a').last()[0]
|
54
|
-
$href = $(href)
|
55
|
-
|
56
|
-
activate($this.parent('li'), $ul)
|
57
|
-
activate($href, $href.parent())
|
58
|
-
|
59
|
-
$this.trigger({
|
60
|
-
type: 'change'
|
61
|
-
, relatedTarget: previous
|
62
|
-
})
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
|
-
|
67
|
-
/* TABS/PILLS PLUGIN DEFINITION
|
68
|
-
* ============================ */
|
69
|
-
|
70
|
-
$.fn.tabs = $.fn.pills = function ( selector ) {
|
71
|
-
return this.each(function () {
|
72
|
-
$(this).delegate(selector || '.tabs li > a, .pills > li > a', 'click', tab)
|
73
|
-
})
|
74
|
-
}
|
75
|
-
|
76
|
-
$(document).ready(function () {
|
77
|
-
$('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a')
|
78
|
-
})
|
79
|
-
|
80
|
-
}( window.jQuery || window.ender );
|
@@ -1,310 +0,0 @@
|
|
1
|
-
/* ==========================================================
|
2
|
-
* bootstrap-twipsy.js v1.4.0
|
3
|
-
* http://twitter.github.com/bootstrap/javascript.html#twipsy
|
4
|
-
* Adapted from the original jQuery.tipsy by Jason Frame
|
5
|
-
* ==========================================================
|
6
|
-
* Copyright 2011 Twitter, Inc.
|
7
|
-
*
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
-
* you may not use this file except in compliance with the License.
|
10
|
-
* You may obtain a copy of the License at
|
11
|
-
*
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
-
*
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
-
* See the License for the specific language governing permissions and
|
18
|
-
* limitations under the License.
|
19
|
-
* ========================================================== */
|
20
|
-
|
21
|
-
|
22
|
-
!function( $ ) {
|
23
|
-
|
24
|
-
"use strict"
|
25
|
-
|
26
|
-
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
|
27
|
-
* ======================================================= */
|
28
|
-
|
29
|
-
var transitionEnd
|
30
|
-
|
31
|
-
$(document).ready(function () {
|
32
|
-
|
33
|
-
$.support.transition = (function () {
|
34
|
-
var thisBody = document.body || document.documentElement
|
35
|
-
, thisStyle = thisBody.style
|
36
|
-
, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
|
37
|
-
return support
|
38
|
-
})()
|
39
|
-
|
40
|
-
// set CSS transition event type
|
41
|
-
if ( $.support.transition ) {
|
42
|
-
transitionEnd = "TransitionEnd"
|
43
|
-
if ( $.browser.webkit ) {
|
44
|
-
transitionEnd = "webkitTransitionEnd"
|
45
|
-
} else if ( $.browser.mozilla ) {
|
46
|
-
transitionEnd = "transitionend"
|
47
|
-
} else if ( $.browser.opera ) {
|
48
|
-
transitionEnd = "oTransitionEnd"
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
})
|
53
|
-
|
54
|
-
|
55
|
-
/* TWIPSY PUBLIC CLASS DEFINITION
|
56
|
-
* ============================== */
|
57
|
-
|
58
|
-
var Twipsy = function ( element, options ) {
|
59
|
-
this.$element = $(element)
|
60
|
-
this.options = options
|
61
|
-
this.enabled = true
|
62
|
-
this.fixTitle()
|
63
|
-
}
|
64
|
-
|
65
|
-
Twipsy.prototype = {
|
66
|
-
|
67
|
-
show: function() {
|
68
|
-
var pos
|
69
|
-
, actualWidth
|
70
|
-
, actualHeight
|
71
|
-
, placement
|
72
|
-
, $tip
|
73
|
-
, tp
|
74
|
-
|
75
|
-
if (this.hasContent() && this.enabled) {
|
76
|
-
$tip = this.tip()
|
77
|
-
this.setContent()
|
78
|
-
|
79
|
-
if (this.options.animate) {
|
80
|
-
$tip.addClass('fade')
|
81
|
-
}
|
82
|
-
|
83
|
-
$tip
|
84
|
-
.remove()
|
85
|
-
.css({ top: 0, left: 0, display: 'block' })
|
86
|
-
.prependTo(document.body)
|
87
|
-
|
88
|
-
pos = $.extend({}, this.$element.offset(), {
|
89
|
-
width: this.$element[0].offsetWidth
|
90
|
-
, height: this.$element[0].offsetHeight
|
91
|
-
})
|
92
|
-
|
93
|
-
actualWidth = $tip[0].offsetWidth
|
94
|
-
actualHeight = $tip[0].offsetHeight
|
95
|
-
|
96
|
-
placement = maybeCall(this.options.placement, this, [ $tip[0], this.$element[0] ])
|
97
|
-
|
98
|
-
switch (placement) {
|
99
|
-
case 'below':
|
100
|
-
tp = {top: pos.top + pos.height + this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2}
|
101
|
-
break
|
102
|
-
case 'above':
|
103
|
-
tp = {top: pos.top - actualHeight - this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2}
|
104
|
-
break
|
105
|
-
case 'left':
|
106
|
-
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth - this.options.offset}
|
107
|
-
break
|
108
|
-
case 'right':
|
109
|
-
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width + this.options.offset}
|
110
|
-
break
|
111
|
-
}
|
112
|
-
|
113
|
-
$tip
|
114
|
-
.css(tp)
|
115
|
-
.addClass(placement)
|
116
|
-
.addClass('in')
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
, setContent: function () {
|
121
|
-
var $tip = this.tip()
|
122
|
-
$tip.find('.twipsy-inner')[this.options.html ? 'html' : 'text'](this.getTitle())
|
123
|
-
$tip[0].className = 'twipsy'
|
124
|
-
}
|
125
|
-
|
126
|
-
, hide: function() {
|
127
|
-
var that = this
|
128
|
-
, $tip = this.tip()
|
129
|
-
|
130
|
-
$tip.removeClass('in')
|
131
|
-
|
132
|
-
function removeElement () {
|
133
|
-
$tip.remove()
|
134
|
-
}
|
135
|
-
|
136
|
-
$.support.transition && this.$tip.hasClass('fade') ?
|
137
|
-
$tip.bind(transitionEnd, removeElement) :
|
138
|
-
removeElement()
|
139
|
-
}
|
140
|
-
|
141
|
-
, fixTitle: function() {
|
142
|
-
var $e = this.$element
|
143
|
-
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
|
144
|
-
$e.attr('data-original-title', $e.attr('title') || '').removeAttr('title')
|
145
|
-
}
|
146
|
-
}
|
147
|
-
|
148
|
-
, hasContent: function () {
|
149
|
-
return this.getTitle()
|
150
|
-
}
|
151
|
-
|
152
|
-
, getTitle: function() {
|
153
|
-
var title
|
154
|
-
, $e = this.$element
|
155
|
-
, o = this.options
|
156
|
-
|
157
|
-
this.fixTitle()
|
158
|
-
|
159
|
-
if (typeof o.title == 'string') {
|
160
|
-
title = $e.attr(o.title == 'title' ? 'data-original-title' : o.title)
|
161
|
-
} else if (typeof o.title == 'function') {
|
162
|
-
title = o.title.call($e[0])
|
163
|
-
}
|
164
|
-
|
165
|
-
title = ('' + title).replace(/(^\s*|\s*$)/, "")
|
166
|
-
|
167
|
-
return title || o.fallback
|
168
|
-
}
|
169
|
-
|
170
|
-
, tip: function() {
|
171
|
-
if (!this.$tip) {
|
172
|
-
this.$tip = $('<div class="twipsy" />').html(this.options.template)
|
173
|
-
}
|
174
|
-
return this.$tip
|
175
|
-
}
|
176
|
-
|
177
|
-
, validate: function() {
|
178
|
-
if (!this.$element[0].parentNode) {
|
179
|
-
this.hide()
|
180
|
-
this.$element = null
|
181
|
-
this.options = null
|
182
|
-
}
|
183
|
-
}
|
184
|
-
|
185
|
-
, enable: function() {
|
186
|
-
this.enabled = true
|
187
|
-
}
|
188
|
-
|
189
|
-
, disable: function() {
|
190
|
-
this.enabled = false
|
191
|
-
}
|
192
|
-
|
193
|
-
, toggleEnabled: function() {
|
194
|
-
this.enabled = !this.enabled
|
195
|
-
}
|
196
|
-
|
197
|
-
}
|
198
|
-
|
199
|
-
|
200
|
-
/* TWIPSY PRIVATE METHODS
|
201
|
-
* ====================== */
|
202
|
-
|
203
|
-
function maybeCall ( thing, ctx, args ) {
|
204
|
-
return typeof thing == 'function' ? thing.apply(ctx, args) : thing
|
205
|
-
}
|
206
|
-
|
207
|
-
/* TWIPSY PLUGIN DEFINITION
|
208
|
-
* ======================== */
|
209
|
-
|
210
|
-
$.fn.twipsy = function (options) {
|
211
|
-
$.fn.twipsy.initWith.call(this, options, Twipsy, 'twipsy')
|
212
|
-
return this
|
213
|
-
}
|
214
|
-
|
215
|
-
$.fn.twipsy.initWith = function (options, Constructor, name) {
|
216
|
-
var twipsy
|
217
|
-
, binder
|
218
|
-
, eventIn
|
219
|
-
, eventOut
|
220
|
-
|
221
|
-
if (options === true) {
|
222
|
-
return this.data(name)
|
223
|
-
} else if (typeof options == 'string') {
|
224
|
-
twipsy = this.data(name)
|
225
|
-
if (twipsy) {
|
226
|
-
twipsy[options]()
|
227
|
-
}
|
228
|
-
return this
|
229
|
-
}
|
230
|
-
|
231
|
-
options = $.extend({}, $.fn[name].defaults, options)
|
232
|
-
|
233
|
-
function get(ele) {
|
234
|
-
var twipsy = $.data(ele, name)
|
235
|
-
|
236
|
-
if (!twipsy) {
|
237
|
-
twipsy = new Constructor(ele, $.fn.twipsy.elementOptions(ele, options))
|
238
|
-
$.data(ele, name, twipsy)
|
239
|
-
}
|
240
|
-
|
241
|
-
return twipsy
|
242
|
-
}
|
243
|
-
|
244
|
-
function enter() {
|
245
|
-
var twipsy = get(this)
|
246
|
-
twipsy.hoverState = 'in'
|
247
|
-
|
248
|
-
if (options.delayIn == 0) {
|
249
|
-
twipsy.show()
|
250
|
-
} else {
|
251
|
-
twipsy.fixTitle()
|
252
|
-
setTimeout(function() {
|
253
|
-
if (twipsy.hoverState == 'in') {
|
254
|
-
twipsy.show()
|
255
|
-
}
|
256
|
-
}, options.delayIn)
|
257
|
-
}
|
258
|
-
}
|
259
|
-
|
260
|
-
function leave() {
|
261
|
-
var twipsy = get(this)
|
262
|
-
twipsy.hoverState = 'out'
|
263
|
-
if (options.delayOut == 0) {
|
264
|
-
twipsy.hide()
|
265
|
-
} else {
|
266
|
-
setTimeout(function() {
|
267
|
-
if (twipsy.hoverState == 'out') {
|
268
|
-
twipsy.hide()
|
269
|
-
}
|
270
|
-
}, options.delayOut)
|
271
|
-
}
|
272
|
-
}
|
273
|
-
|
274
|
-
if (!options.live) {
|
275
|
-
this.each(function() {
|
276
|
-
get(this)
|
277
|
-
})
|
278
|
-
}
|
279
|
-
|
280
|
-
if (options.trigger != 'manual') {
|
281
|
-
binder = options.live ? 'live' : 'bind'
|
282
|
-
eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus'
|
283
|
-
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur'
|
284
|
-
this[binder](eventIn, enter)[binder](eventOut, leave)
|
285
|
-
}
|
286
|
-
|
287
|
-
return this
|
288
|
-
}
|
289
|
-
|
290
|
-
$.fn.twipsy.Twipsy = Twipsy
|
291
|
-
|
292
|
-
$.fn.twipsy.defaults = {
|
293
|
-
animate: true
|
294
|
-
, delayIn: 0
|
295
|
-
, delayOut: 0
|
296
|
-
, fallback: ''
|
297
|
-
, placement: 'above'
|
298
|
-
, html: false
|
299
|
-
, live: false
|
300
|
-
, offset: 0
|
301
|
-
, title: 'title'
|
302
|
-
, trigger: 'hover'
|
303
|
-
, template: '<div class="twipsy-arrow"></div><div class="twipsy-inner"></div>'
|
304
|
-
}
|
305
|
-
|
306
|
-
$.fn.twipsy.elementOptions = function(ele, options) {
|
307
|
-
return $.extend({}, options, $(ele).data())
|
308
|
-
}
|
309
|
-
|
310
|
-
}( window.jQuery || window.ender );
|
@@ -1,40 +0,0 @@
|
|
1
|
-
<!DOCTYPE HTML>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Bootstrap Plugin Test Suite</title>
|
5
|
-
|
6
|
-
<!-- jquery -->
|
7
|
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
|
8
|
-
|
9
|
-
<!-- qunit -->
|
10
|
-
<link rel="stylesheet" href="vendor/qunit.css" type="text/css" media="screen" />
|
11
|
-
<script src="vendor/qunit.js"></script>
|
12
|
-
|
13
|
-
<!-- plugin sources -->
|
14
|
-
<script src="../../js/bootstrap-alerts.js"></script>
|
15
|
-
<script src="../../js/bootstrap-dropdown.js"></script>
|
16
|
-
<script src="../../js/bootstrap-modal.js"></script>
|
17
|
-
<script src="../../js/bootstrap-tabs.js"></script>
|
18
|
-
<script src="../../js/bootstrap-twipsy.js"></script>
|
19
|
-
<script src="../../js/bootstrap-popover.js"></script>
|
20
|
-
<script src="../../js/bootstrap-buttons.js"></script>
|
21
|
-
|
22
|
-
<!-- unit tests -->
|
23
|
-
<script src="unit/bootstrap-alerts.js"></script>
|
24
|
-
<script src="unit/bootstrap-dropdown.js"></script>
|
25
|
-
<script src="unit/bootstrap-modal.js"></script>
|
26
|
-
<script src="unit/bootstrap-popover.js"></script>
|
27
|
-
<script src="unit/bootstrap-tabs.js"></script>
|
28
|
-
<script src="unit/bootstrap-twipsy.js"></script>
|
29
|
-
<script src="unit/bootstrap-buttons.js"></script>
|
30
|
-
|
31
|
-
<body>
|
32
|
-
<div>
|
33
|
-
<h1 id="qunit-header">Bootstrap Plugin Test Suite</h1>
|
34
|
-
<h2 id="qunit-banner"></h2>
|
35
|
-
<h2 id="qunit-userAgent"></h2>
|
36
|
-
<ol id="qunit-tests"></ol>
|
37
|
-
<div id="qunit-runoff"></div>
|
38
|
-
</div>
|
39
|
-
</body>
|
40
|
-
</html>
|
@@ -1,41 +0,0 @@
|
|
1
|
-
$(function () {
|
2
|
-
|
3
|
-
module("bootstrap-alerts")
|
4
|
-
|
5
|
-
test("should be defined on jquery object", function () {
|
6
|
-
ok($(document.body).alert, 'alert method is defined')
|
7
|
-
})
|
8
|
-
|
9
|
-
test("should return element", function () {
|
10
|
-
ok($(document.body).alert()[0] == document.body, 'document.body returned')
|
11
|
-
})
|
12
|
-
|
13
|
-
test("should fade element out on clicking .close", function () {
|
14
|
-
var alertHTML = '<div class="alert-message warning fade in">'
|
15
|
-
+ '<a class="close" href="#">×</a>'
|
16
|
-
+ '<p><strong>Holy guacamole!</strong> Best check yo self, you’re not looking too good.</p>'
|
17
|
-
+ '</div>'
|
18
|
-
, alert = $(alertHTML).alert()
|
19
|
-
|
20
|
-
alert.find('.close').click()
|
21
|
-
|
22
|
-
ok(!alert.hasClass('in'), 'remove .in class on .close click')
|
23
|
-
})
|
24
|
-
|
25
|
-
test("should remove element when clicking .close", function () {
|
26
|
-
$.support.transition = false
|
27
|
-
|
28
|
-
var alertHTML = '<div class="alert-message warning fade in">'
|
29
|
-
+ '<a class="close" href="#">×</a>'
|
30
|
-
+ '<p><strong>Holy guacamole!</strong> Best check yo self, you’re not looking too good.</p>'
|
31
|
-
+ '</div>'
|
32
|
-
, alert = $(alertHTML).appendTo('#qunit-runoff').alert()
|
33
|
-
|
34
|
-
ok($('#qunit-runoff').find('.alert-message').length, 'element added to dom')
|
35
|
-
|
36
|
-
alert.find('.close').click()
|
37
|
-
|
38
|
-
ok(!$('#qunit-runoff').find('.alert-message').length, 'element removed from dom')
|
39
|
-
})
|
40
|
-
|
41
|
-
})
|