Sha256: 67efb249ac5ebb98e1faf1c1e5c97a5dda07d6e5272b9c03831618c4236636d7
Contents?: true
Size: 461 Bytes
Versions: 19
Compression:
Stored size: 461 Bytes
Contents
require File.join(File.expand_path(File.dirname(__FILE__)), '..', 'spec_helper') require File.join(File.expand_path(File.dirname(__FILE__)), '..', 'helpers', 'models') describe RuGUI::BaseModel do describe "with initialization hooks" do it "should call before initialize and after initialize methods" do model = MyModel.new model.before_initialize_called?.should be_true model.after_initialize_called?.should be_true end end end
Version data entries
19 entries across 19 versions & 2 rubygems