Skip to content

Commit 9c4b77e

Browse files
Greg Bellgregbell
authored andcommitted
Fixed missing constant issues in 1.8.7
1 parent 0ee387e commit 9c4b77e

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

spec/unit/arbre/html/element_spec.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
include Arbre::HTML
66

77
let(:assigns){ {} }
8-
let(:element){ Element.new }
8+
let(:element){ Arbre::HTML::Element.new }
99

1010
context "when initialized" do
1111
it "should have no children" do
@@ -21,7 +21,7 @@
2121
element.should respond_to(:span)
2222
end
2323
it "should have a set of local assigns" do
24-
element = Element.new :hello => "World"
24+
element = Arbre::HTML::Element.new :hello => "World"
2525
element.assigns[:hello].should == "World"
2626
end
2727
it "should have an empty hash with no local assigns" do
@@ -30,7 +30,7 @@
3030
end
3131

3232
describe "passing in a helper object" do
33-
let(:element){ Element.new(nil, action_view) }
33+
let(:element){ Arbre::HTML::Element.new(nil, action_view) }
3434
it "should call methods on the helper object and return TextNode objects" do
3535
element.content_tag(:div).should == "<div></div>"
3636
end
@@ -43,7 +43,7 @@
4343
end
4444

4545
describe "adding a child" do
46-
let(:child){ Element.new }
46+
let(:child){ Arbre::HTML::Element.new }
4747
before do
4848
element.add_child child
4949
end
@@ -66,7 +66,7 @@
6666
context "when the child is a string" do
6767
let(:child){ "Hello World" }
6868
it "should add as a TextNode" do
69-
element.children.first.should be_instance_of(TextNode)
69+
element.children.first.should be_instance_of(Arbre::HTML::TextNode)
7070
element.children.first.to_html.should == "Hello World"
7171
end
7272
end
@@ -123,8 +123,8 @@
123123

124124
describe "setting the parent" do
125125
let(:parent) do
126-
doc = Document.new
127-
parent = Element.new
126+
doc = Arbre::HTML::Document.new
127+
parent = Arbre::HTML::Element.new
128128
doc << parent
129129
parent
130130
end
@@ -162,7 +162,7 @@
162162
end
163163

164164
context "when the left is a collection and the right is a tag" do
165-
let(:collection){ Collection.new([h1, h2]) + h3}
165+
let(:collection){ Arbre::HTML::Collection.new([h1, h2]) + h3}
166166

167167
it "should return an instance of Collection" do
168168
collection.should be_an_instance_of(Arbre::HTML::Collection)
@@ -177,7 +177,7 @@
177177
end
178178

179179
context "when the right is a collection and the left is a tag" do
180-
let(:collection){ h1 + Collection.new([h2,h3]) }
180+
let(:collection){ h1 + Arbre::HTML::Collection.new([h2,h3]) }
181181

182182
it "should return an instance of Collection" do
183183
collection.should be_an_instance_of(Arbre::HTML::Collection)

spec/unit/arbre/html/tag_attributes_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
include Arbre::HTML
55
let(:assigns){ {} }
66

7-
let(:tag){ Tag.new }
7+
let(:tag){ Arbre::HTML::Tag.new }
88

99
describe "attributes" do
1010
before { tag.build :id => "my_id" }

spec/unit/arbre/html/tag_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
include Arbre::HTML
55
let(:assigns){ {} }
66

7-
let(:tag){ Tag.new }
7+
let(:tag){ Arbre::HTML::Tag.new }
88

99
describe "building a new tag" do
1010
before { tag.build "Hello World", :id => "my_id" }

0 commit comments

Comments
 (0)