spec/unit/sql/table_modifier_spec.rb in dm-migrations-1.0.0.rc2 vs spec/unit/sql/table_modifier_spec.rb in dm-migrations-1.0.0.rc3

- old
+ new

@@ -24,10 +24,10 @@ it 'should set @statements to an empty array' do @tc.instance_variable_get("@statements").should == [] end it 'should evaluate the given block' do - block = lambda { column :foo, :bar } + block = proc { column :foo, :bar } col = mock('column') SQL::TableCreator::Column.should_receive(:new).with(@adapter, :foo, :bar, {}).and_return(col) tc = SQL::TableCreator.new(@adapter, 'users', {}, &block) tc.instance_variable_get("@columns").should == [col] end