Commit 38cafc31f45cb13e2a6ef59e07de2a0ac6d602b1
1 parent
21317449
Exists in
master
and in
29 other branches
ActionItem85: removing old stuff
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@651 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
0 additions
and
49 deletions
Show diff stats
app/models/environment.rb
... | ... | @@ -86,36 +86,6 @@ class Environment < ActiveRecord::Base |
86 | 86 | def has_terms_of_use? |
87 | 87 | ! self.settings['terms_of_use'].nil? |
88 | 88 | end |
89 | - | |
90 | - # Returns the template used by +flexible_template+ plugin. | |
91 | - def flexible_template_template | |
92 | - self.settings['flexible_template_template'] | |
93 | - end | |
94 | - | |
95 | - # Sets the template used by +flexible_template+ plugin. | |
96 | - def flexible_template_template=(value) | |
97 | - self.settings['flexible_template_template'] = value | |
98 | - end | |
99 | - | |
100 | - # Returns the theme used by +flexible_template+ plugin | |
101 | - def flexible_template_theme | |
102 | - self.settings['flexible_template_theme'] | |
103 | - end | |
104 | - | |
105 | - # Sets the theme used by +flexible_template+ plugin | |
106 | - def flexible_template_theme=(value) | |
107 | - self.settings['flexible_template_theme'] = value | |
108 | - end | |
109 | - | |
110 | - # Returns the icon theme used by +flexible_template+ plugin | |
111 | - def flexible_template_icon_theme | |
112 | - self.settings['flexible_template_icon_theme'] | |
113 | - end | |
114 | - | |
115 | - # Sets the icon theme used by +flexible_template+ plugin | |
116 | - def flexible_template_icon_theme=(value) | |
117 | - self.settings['flexible_template_icon_theme'] = value | |
118 | - end | |
119 | 89 | |
120 | 90 | # ################################################# |
121 | 91 | # Validations | ... | ... |
test/unit/environment_test.rb
... | ... | @@ -78,25 +78,6 @@ class EnvironmentTest < Test::Unit::TestCase |
78 | 78 | assert v.has_terms_of_use? |
79 | 79 | end |
80 | 80 | |
81 | - def test_should_profive_flexible_template_stuff | |
82 | - v = Environment.new | |
83 | - | |
84 | - # template | |
85 | - assert_nil v.flexible_template_template | |
86 | - v.flexible_template_template = 'bli' | |
87 | - assert_equal 'bli', v.flexible_template_template | |
88 | - | |
89 | - # theme | |
90 | - assert_nil v.flexible_template_theme | |
91 | - v.flexible_template_theme = 'bli' | |
92 | - assert_equal 'bli', v.flexible_template_theme | |
93 | - | |
94 | - # icon theme | |
95 | - assert_nil v.flexible_template_icon_theme | |
96 | - v.flexible_template_icon_theme = 'bli' | |
97 | - assert_equal 'bli', v.flexible_template_icon_theme | |
98 | - end | |
99 | - | |
100 | 81 | def test_should_list_top_level_categories |
101 | 82 | env = Environment.create!(:name => 'a test environment') |
102 | 83 | cat1 = Category.create!(:name => 'first category', :environment_id => env.id) | ... | ... |