Displaying 1 result from an estimated 1 matches for "some_cool_behavior".
2008 Mar 03
1
Rspec and plugins
...practices around module and plugin
testing for rails applications. In our application we have created
several plugins that extend ActiveRecord::Base with class methods,
that when invoked in a model add behavior to that model. For
example ...
class SomeModel < ActiveRecord::Base
adds_some_cool_behavior
adds_another_wicked_sweet_behavior
end
My initial thoughts are that any model that add these behaviors
"should" have this specified in their spec. With that in mind, I was
leaning towards creating a module that when included inside a model
spec adds the necessary specifications...