From: Lunar Date: Sat, 1 Jun 2013 11:00:12 +0000 (+0200) Subject: Fix membership_fee_paid_on handling handling X-Git-Url: https://nos-oignons.net/gitweb/gestion-adh.git/commitdiff_plain/9ef89e25a8f7758e1a3478d0c455c9254dff9112 Fix membership_fee_paid_on handling handling --- diff --git a/features/support/fixtures.rb b/features/support/fixtures.rb index 2c54036..0fa06c0 100644 --- a/features/support/fixtures.rb +++ b/features/support/fixtures.rb @@ -55,7 +55,7 @@ name: <%= name %> address: | <%= address.gsub(/^/, ' ').rstrip %> email: <%= email %> -mumbership_fee_paid_on: <%= membership_fee_paid_on %> +membership_fee_paid_on: <%= membership_fee_paid_on %> --- <%= notes %> diff --git a/lib/nos_oignons/subscriptions.rb b/lib/nos_oignons/subscriptions.rb index a433c8c..ca5cafe 100644 --- a/lib/nos_oignons/subscriptions.rb +++ b/lib/nos_oignons/subscriptions.rb @@ -16,7 +16,7 @@ def is_valid_subscription?(content) return false unless data.include?(key) end if data.include?('membership_fee_paid_on') - return false unless data.is_a?(Date) + return false unless data['membership_fee_paid_on'].is_a?(Date) end true end