arbre 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/arbre/html/tag.rb +1 -1
- data/lib/arbre/version.rb +1 -1
- data/spec/arbre/unit/html/tag_spec.rb +16 -0
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/lib/arbre/html/tag.rb
CHANGED
data/lib/arbre/version.rb
CHANGED
@@ -31,6 +31,22 @@ describe Arbre::HTML::Tag do
|
|
31
31
|
it "should add a class name" do
|
32
32
|
tag.class_list.should include("resource_class")
|
33
33
|
end
|
34
|
+
|
35
|
+
describe "with a default_id_for_prefix" do
|
36
|
+
|
37
|
+
let(:tag) do
|
38
|
+
Class.new(Arbre::HTML::Tag) do
|
39
|
+
def default_id_for_prefix
|
40
|
+
"a_prefix"
|
41
|
+
end
|
42
|
+
end.new
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should set the id to the type and id" do
|
46
|
+
tag.id.should == "a_prefix_resource_class_5"
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
34
50
|
end
|
35
51
|
|
36
52
|
describe "css class names" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arbre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc3
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-06-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &70108108400940 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70108108400940
|
25
25
|
description: An Object Oriented DOM Tree in Ruby
|
26
26
|
email:
|
27
27
|
- gregdbell@gmail.com
|