From 9ef89e25a8f7758e1a3478d0c455c9254dff9112 Mon Sep 17 00:00:00 2001 From: Lunar Date: Sat, 1 Jun 2013 13:00:12 +0200 Subject: [PATCH] Fix membership_fee_paid_on handling handling --- features/support/fixtures.rb | 2 +- lib/nos_oignons/subscriptions.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5