tb_core 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +16 -0
- data/app/assets/javascripts/admin/core/editor.js +1 -1
- data/app/assets/stylesheets/admin/core/application.css.scss +9 -0
- data/app/controllers/spud/application_controller.rb +2 -1
- data/app/views/layouts/admin/application.html.erb +6 -1
- data/lib/generators/spud/setup_generator.rb +35 -1
- data/lib/spud_core/configuration.rb +2 -1
- data/lib/spud_core/exceptions.rb +3 -2
- data/lib/spud_core/version.rb +1 -1
- data/spec/dummy/log/test.log +36027 -0
- data/spec/views/layouts/admin/application.html.erb_spec.rb +20 -0
- metadata +6 -4
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'layouts/admin/application' do
|
4
|
+
|
5
|
+
include ActionView::TestCase::Behavior
|
6
|
+
|
7
|
+
before :each do
|
8
|
+
activate_authlogic
|
9
|
+
view.stub(:current_user){
|
10
|
+
FactoryGirl.create(:spud_user)
|
11
|
+
}
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'should display an alert if Spud::Core.production_alert_domain is set' do
|
15
|
+
Spud::Core.production_alert_domain = 'www.google.com'
|
16
|
+
render
|
17
|
+
rendered.should have_selector(".production-alert-header")
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tb_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Woods
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -140,14 +140,14 @@ dependencies:
|
|
140
140
|
name: mysql2
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ~>
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: 0.3.11
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ~>
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 0.3.11
|
153
153
|
- !ruby/object:Gem::Dependency
|
@@ -606,6 +606,7 @@ files:
|
|
606
606
|
- spec/models/spud_user_spec.rb
|
607
607
|
- spec/spec_helper.rb
|
608
608
|
- spec/support/authlogic_helper.rb
|
609
|
+
- spec/views/layouts/admin/application.html.erb_spec.rb
|
609
610
|
homepage: http://bitbucket.org/westlakedesign/tb_core
|
610
611
|
licenses: []
|
611
612
|
metadata: {}
|
@@ -681,3 +682,4 @@ test_files:
|
|
681
682
|
- spec/models/spud_user_spec.rb
|
682
683
|
- spec/spec_helper.rb
|
683
684
|
- spec/support/authlogic_helper.rb
|
685
|
+
- spec/views/layouts/admin/application.html.erb_spec.rb
|