spec/integration/children_dsl_spec.rb in geoff-0.0.2.beta vs spec/integration/children_dsl_spec.rb in geoff-0.0.3.beta

- old
+ new

@@ -36,12 +36,12 @@ context "with missing rel type" do let(:missing){ChildrenDsl.new(parent_node_name: 'starbucks') {area 'Luton' } } let(:top) {ChildrenDsl.new(parent_node_name: 'starbucks', type: :x ){area 'Luton' } } let(:on_node){ChildrenDsl.new(parent_node_name: 'starbucks') {area 'Luton', type: :x }} - specify { ->{missing }.should raise_error ArgumentError} - specify { ->{ top }.should_not raise_error ArgumentError } - specify { ->{ on_node}.should_not raise_error ArgumentError } + specify { ->{missing }.should raise_error Geoff::DslSyntaxError} + specify { ->{ top }.should_not raise_error } + specify { ->{ on_node}.should_not raise_error } end describe 'with special node' do let(:children) do ChildrenDsl.new({parent_node_name: 'starbucks'}) do