spec/schematic/generator/sandbox_spec.rb in schematic-0.4.1 vs spec/schematic/generator/sandbox_spec.rb in schematic-0.4.2
- old
+ new
@@ -23,28 +23,28 @@
describe "adding elements" do
context "given a single element" do
it "should add the method to the element list" do
subject.run do
- element :foo
+ add :foo
end
subject.added_elements.keys.should include(:foo)
end
end
context "nesting elements" do
it "should add the method to the element list" do
subject.run do
- element :foo => { :bar => nil }
+ add :foo => { :bar => nil }
end
subject.added_elements[:foo].should == { :bar => nil }
end
end
context "sequence of subelements" do
it "should add the method to the element list" do
subject.run do
- element :foo => [:bar]
+ add :foo => [:bar]
end
subject.added_elements[:foo].should == [:bar]
end
end
end