Displaying 1 result from an estimated 1 matches for "migration_1".
Did you mean:
migration_
2008 May 18
0
Spec a before_destroy callback in Sequel
...@changeset = DataModel::Changeset.new
end
it "should fire a before_destroy hook to destroy all Migrations" do
class << @changeset
def destroy
before_destroy
end
end
@changeset.stub!(:migrations).and_return(
[@migration_1, @migration_2])
@migration_1.should_receive(:destroy)
@migration_2.should_receive(:destroy)
@changeset.destroy
end
end
So I''ve committed these sins:
* redefined someone else''s code, when I depend on the real version at
runtime
* included an assump...