fusionary-easel_helpers 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/easel_helpers.gemspec +2 -2
- data/lib/easel_helpers/helpers/table_helper.rb +1 -1
- data/test/table_helper_test.rb +5 -5
- metadata +2 -2
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.
|
6
|
+
Echoe.new("easel_helpers", "0.2.1") 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
@@ -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.
|
5
|
+
s.version = "0.2.1"
|
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-05-
|
9
|
+
s.date = %q{2009-05-13}
|
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/link_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"]
|
@@ -41,7 +41,7 @@ module EaselHelpers
|
|
41
41
|
html = clean_column css_classes do
|
42
42
|
content_tag(:table,
|
43
43
|
content_tag(:thead, content_tag(:tr, headers.to_s)) + capture(&block),
|
44
|
-
options[:table].merge(:class => css_classes))
|
44
|
+
options[:table].merge(:class => css_classes, :cellspacing => 0))
|
45
45
|
end
|
46
46
|
|
47
47
|
reset_cycle
|
data/test/table_helper_test.rb
CHANGED
@@ -37,13 +37,13 @@ class TableHelperTest < EaselHelpers::ViewTestCase
|
|
37
37
|
|
38
38
|
should "default with the correct structure" do
|
39
39
|
show_view %(<% recordset do %>rows<% end %>) do
|
40
|
-
assert_select "table.recordset", "rows"
|
40
|
+
assert_select "table.recordset[cellspacing=0]", "rows"
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
44
|
should "allow headers be set" do
|
45
45
|
show_view %(<% recordset :headers => ["Header 1", "Header 2", "Header 3"] do %><tbody>rows</tbody><% end %>) do
|
46
|
-
assert_select "table.recordset" do
|
46
|
+
assert_select "table.recordset[cellspacing=0]" do
|
47
47
|
assert_select "thead" do
|
48
48
|
assert_select "tr" do
|
49
49
|
assert_select "th.first", "Header 1"
|
@@ -62,7 +62,7 @@ class TableHelperTest < EaselHelpers::ViewTestCase
|
|
62
62
|
<tbody>rows</tbody>
|
63
63
|
<% end %>
|
64
64
|
) do
|
65
|
-
assert_select "table.recordset" do
|
65
|
+
assert_select "table.recordset[cellspacing=0]" do
|
66
66
|
assert_select "thead" do
|
67
67
|
assert_select "tr" do
|
68
68
|
assert_select "th#over.first.mine", "Header 1"
|
@@ -75,13 +75,13 @@ class TableHelperTest < EaselHelpers::ViewTestCase
|
|
75
75
|
|
76
76
|
should "allow classes be assigned in a comma-delimited manner" do
|
77
77
|
show_view %(<% recordset "my-recordset", "car-list" do %><% end %>) do
|
78
|
-
assert_select "table.recordset.my-recordset.car-list"
|
78
|
+
assert_select "table.recordset.my-recordset.car-list[cellspacing=0]"
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
82
|
should "allow additional attributes be set on the recordset" do
|
83
83
|
show_view %(<% recordset :headers => %w(One Two Three), :table => {:id => "my-id", :class => "my-recordset"} do %><% end %>) do
|
84
|
-
assert_select "table#my-id.recordset.my-recordset" do
|
84
|
+
assert_select "table#my-id.recordset.my-recordset[cellspacing=0]" do
|
85
85
|
assert_select "thead" do
|
86
86
|
assert_select "tr" do
|
87
87
|
assert_select "th", "One"
|
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.
|
4
|
+
version: 0.2.1
|
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-05-
|
12
|
+
date: 2009-05-13 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|