Skip to content

Instantly share code, notes, and snippets.

@asachs
Created March 1, 2012 13:24
Show Gist options
  • Save asachs/1949788 to your computer and use it in GitHub Desktop.
Save asachs/1949788 to your computer and use it in GitHub Desktop.
# dependant on values supplied in amount_paid
context "for membership_term and member_paid" do
subject { Factory.build(:member) }
let(:amount_paid) { ANNUAL_MEMBERSHIP_COST }
it {
should allow_value(ANNUAL_MEMBERSHIP_COST).for(:amount_paid)
assert subject.membership_term == 1
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment