Sha256: dfacfb9411347c4beda888228b679a1c8b1c46efb7463fccc33dea4466ac4b61
Contents?: true
Size: 496 Bytes
Versions: 13
Compression:
Stored size: 496 Bytes
Contents
require 'spec_helper' module Governor describe Plugin do before(:each) do @plugin = Plugin.new('test') @plugin.register_model_callback do |base| def base.test_method true end end PluginManager.register @plugin end it "can add code to the model" do class ArticleStub < ActiveRecord::Base establish_connection 'nulldb' include Article end ArticleStub.should respond_to :test_method end end end
Version data entries
13 entries across 13 versions & 1 rubygems