]> nos-oignons.net Git - gestion-adh.git/commitdiff
Fix membership_fee_paid_on handling handling
authorLunar <lunar@anargeek.net>
Sat, 1 Jun 2013 11:00:12 +0000 (13:00 +0200)
committerLunar <lunar@anargeek.net>
Sat, 1 Jun 2013 11:00:12 +0000 (13:00 +0200)
features/support/fixtures.rb
lib/nos_oignons/subscriptions.rb

index 2c540364842b149fca41916ce933eb0db0d6cdec..0fa06c06f107b7df319cda93ef217ab56a8f849f 100644 (file)
@@ -55,7 +55,7 @@ name: <%= name %>
 address: |
 <%= address.gsub(/^/, '  ').rstrip %>
 email: <%= email %>
 address: |
 <%= address.gsub(/^/, '  ').rstrip %>
 email: <%= email %>
-mumbership_fee_paid_on: <%= membership_fee_paid_on %>
+membership_fee_paid_on: <%= membership_fee_paid_on %>
 ---
 
 <%= notes %>
 ---
 
 <%= notes %>
index a433c8c7fdd6712f59596ad6835dfb4c10060f8d..ca5cafe5265f745b80d6e1fcf261803f8fa8fbfa 100644 (file)
@@ -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.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
   end
   true
 end