fusionary-easel_helpers 0.2.13 → 0.2.14

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 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.13") do |p|
6
+ Echoe.new("easel_helpers", "0.2.14") 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,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{easel_helpers}
5
- s.version = "0.2.13"
5
+ s.version = "0.2.14"
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"]
@@ -52,8 +52,10 @@ module EaselHelpers
52
52
  end
53
53
 
54
54
  def container(size=nil, *args, &block)
55
+ opts = args.extract_options!
56
+ opts.merge!(:suppress_col => true) if size.nil?
55
57
  args = args.insert(0, :container)
56
- column(size, *args, &block)
58
+ column(size, *([args, opts].flatten), &block)
57
59
  end
58
60
 
59
61
  def clean_column(classes, &block)
@@ -29,6 +29,7 @@ class GridHelperTest < EaselHelpers::ViewTestCase
29
29
 
30
30
  show_view template do
31
31
  assert_select ".container", 1
32
+ assert_select ".container.col-24", 0
32
33
  assert_select ".col-24", 1
33
34
  assert_select ".col-12", 2
34
35
  assert_select ".col-12#primary", 1
@@ -109,7 +110,7 @@ class GridHelperTest < EaselHelpers::ViewTestCase
109
110
 
110
111
  should "properly assign classes for a deeply-nested view" do
111
112
  template = %(
112
- <% container do %>
113
+ <% container :full do %>
113
114
  <% column :half do %>
114
115
  <% fieldset :hform, :half do %>
115
116
  <% set :one_third do %>text<% end %>
@@ -127,6 +128,7 @@ class GridHelperTest < EaselHelpers::ViewTestCase
127
128
  )
128
129
 
129
130
  show_view template do
131
+ assert_select "div.container.col-24", 1
130
132
  assert_select "div.container" do
131
133
  assert_select "div.col-12" do
132
134
  assert_select "fieldset.hform.col-6" do
@@ -190,7 +192,9 @@ class GridHelperTest < EaselHelpers::ViewTestCase
190
192
  context "column" do
191
193
 
192
194
  should "allow assigning options hash without having to define a width" do
193
- show_view %(<% column :id => "my-custom-id", :class => "content" do %>words<% end %>) do
195
+ show_view %(
196
+ <% column :id => "my-custom-id", :class => "content" do %>words<% end %>
197
+ ) do
194
198
  assert_select "div.col-24.content#my-custom-id", "words"
195
199
  end
196
200
  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.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Clayton