express_admin 1.7.13 → 1.7.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/express_admin/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/helpers/express_admin/admin_helper_test.rb +11 -0
- data/test/test_helper.rb +6 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81a27a34ed5777817986e753d83af6cfd15bd000
|
4
|
+
data.tar.gz: 23b3fa46477143554f9f6d9f2ace0979b547146e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 041f2f13dfd0d80d3f36c75a9fdaeaf615f844f763faa44fe0827e0c91721e9bedf125ebdad1d1539334c96962e731410e88cb84d4d5da43df18a998ebad670e
|
7
|
+
data.tar.gz: 0168dcec30b818d52d4baa508e0614bab4b369bf307d23b37071f4ad3ffc709e3d15fee3ac0f3767a81ddbee32a3a7f2fbc3d7eb71134402b39fd38e0087a45a
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module ExpressAdmin
|
4
|
+
class AdminHelperTest < ActionView::TestCase
|
5
|
+
test 'title content test' do
|
6
|
+
assert_equal 'Dummy', title_content
|
7
|
+
assert_equal 'Sample Title · Dummy', title_content('Sample Title')
|
8
|
+
assert_equal 'Sample Title · Base Title', title_content('Sample Title', 'Base Title')
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -56,15 +56,21 @@ end
|
|
56
56
|
|
57
57
|
module ActiveSupport
|
58
58
|
class TestCase
|
59
|
+
# Including the helper/s in tests
|
60
|
+
include ExpressAdmin::AdminHelper
|
61
|
+
|
59
62
|
def arbre(additional_assigns = {}, &block)
|
60
63
|
Arbre::Context.new assigns.merge(additional_assigns), helpers, &block
|
61
64
|
end
|
65
|
+
|
62
66
|
def assigns
|
63
67
|
@arbre_assigns ||={}
|
64
68
|
end
|
69
|
+
|
65
70
|
def helpers
|
66
71
|
mock_action_view
|
67
72
|
end
|
73
|
+
|
68
74
|
def mock_action_view &block
|
69
75
|
controller = ActionView::TestCase::TestController.new
|
70
76
|
ActionView::Base.send :include, ActionView::Helpers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: express_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Talcott Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: express_templates
|
@@ -608,6 +608,7 @@ files:
|
|
608
608
|
- test/fixtures/routes.rb
|
609
609
|
- test/fixtures/widgets.yml
|
610
610
|
- test/generators_test_helper.rb
|
611
|
+
- test/helpers/express_admin/admin_helper_test.rb
|
611
612
|
- test/lib/express_admin/menu_test.rb
|
612
613
|
- test/lib/generators/express_admin/install_generator_test.rb
|
613
614
|
- test/lib/generators/express_admin/scaffold_generator_test.rb
|
@@ -749,6 +750,7 @@ test_files:
|
|
749
750
|
- test/fixtures/routes.rb
|
750
751
|
- test/fixtures/widgets.yml
|
751
752
|
- test/generators_test_helper.rb
|
753
|
+
- test/helpers/express_admin/admin_helper_test.rb
|
752
754
|
- test/lib/express_admin/menu_test.rb
|
753
755
|
- test/lib/generators/express_admin/install_generator_test.rb
|
754
756
|
- test/lib/generators/express_admin/scaffold_generator_test.rb
|