Created
September 30, 2009 14:41
-
-
Save phinze/198141 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spec_acts_as_plugin(:acts_as_billable) do |plugin| | |
plugin.should require_methods( | |
:billable_amount, | |
:billable_description, | |
:billable_type, | |
:billable_user, | |
:billable_mfk | |
) | |
plugin.should define_methods( | |
:billed? | |
) | |
plugin.with(:bill_by_date => true).should require_columns( | |
[:effective_start_date, :datetime], | |
[:effective_end_date, :datetime], | |
[:quantity, :integer] | |
) | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment