fusionary-easel_helpers 0.2.14 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
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.2.14") do |p|
6
+ Echoe.new("easel_helpers", "0.2.16") 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"
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{easel_helpers}
5
- s.version = "0.2.14"
5
+ s.version = "0.2.16"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Joshua Clayton"]
9
- s.date = %q{2009-06-28}
9
+ s.date = %q{2009-07-02}
10
10
  s.description = %q{Fusionary Rails View Helpers}
11
11
  s.email = %q{joshua.clayton@gmail.com}
12
12
  s.extra_rdoc_files = ["lib/easel_helpers/helpers/date_helper.rb", "lib/easel_helpers/helpers/form_helper.rb", "lib/easel_helpers/helpers/grid_helper.rb", "lib/easel_helpers/helpers/jquery_helper.rb", "lib/easel_helpers/helpers/link_helper.rb", "lib/easel_helpers/helpers/message_helper.rb", "lib/easel_helpers/helpers/rjs_helper.rb", "lib/easel_helpers/helpers/structure_helper.rb", "lib/easel_helpers/helpers/table_helper.rb", "lib/easel_helpers/helpers.rb", "lib/easel_helpers/rails_partial_caching.rb", "lib/easel_helpers.rb", "README.textile", "tasks/easel_helpers_tasks.rake"]
@@ -19,7 +19,7 @@ module EaselHelpers
19
19
  options = args.extract_options!
20
20
  css_classes = [] << options.delete(:class) << args
21
21
 
22
- if !other_than_grid?(args.map(&:to_s) - ["last", last_column.to_s])
22
+ if !other_than_grid?(args.map(&:to_s) - ["error", "last", last_column.to_s])
23
23
  css_classes << "text"
24
24
  end
25
25
 
@@ -70,6 +70,12 @@ class FormHelperTest < EaselHelpers::ViewTestCase
70
70
  end
71
71
  end
72
72
 
73
+ should "assign default class if error class is passed" do
74
+ show_view "<% set :half, :last, :error do %>words<% end %>" do
75
+ assert_select "div.col-12.text.col-last.error", "words"
76
+ end
77
+ end
78
+
73
79
  should "assign default class if the class textarea is present" do
74
80
  show_view "<% set :textarea do %>words<% end %>" do
75
81
  assert_select "div.textarea.text", "words"
@@ -126,4 +132,4 @@ class FormHelperTest < EaselHelpers::ViewTestCase
126
132
 
127
133
  end
128
134
 
129
- end
135
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusionary-easel_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Clayton
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-28 00:00:00 -07:00
12
+ date: 2009-07-02 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency