spec/unit/arbre/html/element_spec.rb in activeadmin-0.2.2 vs spec/unit/arbre/html/element_spec.rb in activeadmin-0.3.0
- old
+ new
@@ -1,11 +1,10 @@
require 'spec_helper'
-require 'active_admin/arbre/element'
describe Arbre::HTML::Element do
- include Arbre::HTML
- let(:assigns){ {} }
+ setup_arbre_context!
+
let(:element){ Arbre::HTML::Element.new }
context "when initialized" do
it "should have no children" do
element.children.should be_empty