spec/unit/braintree/subscription_search_spec.rb in braintree-2.6.1 vs spec/unit/braintree/subscription_search_spec.rb in braintree-2.6.2

- old
+ new

@@ -15,9 +15,25 @@ ) end.should_not raise_error end end + context "in_trial_period" do + it "allows true" do + search = SubscriptionSearch.new + search.in_trial_period.is true + + search.to_hash.should == {:in_trial_period => [true]} + end + + it "allows false" do + search = SubscriptionSearch.new + search.in_trial_period.is false + + search.to_hash.should == {:in_trial_period => [false]} + end + end + context "days_past_due" do it "correctly builds a hash with the criteria" do search = SubscriptionSearch.new search.days_past_due.is "30"