fusionary-easel_helpers 0.1.8 → 0.1.9
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.
- data/Rakefile +1 -1
- data/easel_helpers.gemspec +1 -1
- data/lib/easel_helpers/helpers/form_helper.rb +1 -0
- data/test/form_helper_test.rb +6 -0
- metadata +1 -1
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rake/testtask'
|
|
3
3
|
require 'rake/rdoctask'
|
4
4
|
require 'echoe'
|
5
5
|
|
6
|
-
Echoe.new("easel_helpers", "0.1.
|
6
|
+
Echoe.new("easel_helpers", "0.1.9") do |p|
|
7
7
|
p.description = "Fusionary Rails View Helpers"
|
8
8
|
p.url = "http://github.com/fusionary/easel_helpers"
|
9
9
|
p.author = "Joshua Clayton"
|
data/easel_helpers.gemspec
CHANGED
@@ -12,6 +12,7 @@ module EaselHelpers
|
|
12
12
|
options = args.extract_options!
|
13
13
|
css_classes = [] << options.delete(:class) << args
|
14
14
|
css_classes << "text" unless other_than_grid?(args.map(&:to_s) - ["last", last_column.to_s])
|
15
|
+
css_classes << "text" if standardize_css_classes(css_classes).include?("textarea")
|
15
16
|
|
16
17
|
css_classes = clean_css_classes(css_classes, {"last" => last_column})
|
17
18
|
|
data/test/form_helper_test.rb
CHANGED
@@ -62,6 +62,12 @@ class FormHelperTest < EaselHelpers::ViewTestCase
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
should "assign default class if the class textarea is present" do
|
66
|
+
show_view "<% set :textarea do %>words<% end %>" do
|
67
|
+
assert_select "div.textarea.text", "words"
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
65
71
|
end
|
66
72
|
|
67
73
|
context "fieldset" do
|