spec/view/view_variables_spec.rb in garterbelt-0.0.9 vs spec/view/view_variables_spec.rb in garterbelt-0.1.0

- old
+ new

@@ -16,9 +16,13 @@ class LessNeedy < Garterbelt::View requires :x => 'x', :y => 'y' end describe 'class level requirements' do + it 'is an empty array by default' do + Garterbelt::View.required.should == [] + end + it 'the class should store a list of required variables' do NeedyView.required.should == [:x, :y] SelectiveView.required.should == [:x, :y] end \ No newline at end of file