test/callbacks_spec.rb in stripe-rails-0.3.1 vs test/callbacks_spec.rb in stripe-rails-0.4.0
- old
+ new
@@ -154,10 +154,10 @@
end
end
describe 'specified as a lambda' do
before do
@observer.class_eval do
- after_invoice_updated :only => proc {|target, evt| evt.data.previous_attributes.has_key? "closed"} do |i,e|
+ after_invoice_updated :only => proc {|target, evt| evt.data.previous_attributes.to_hash.has_key? :closed} do |i,e|
events << e
end
end
end
it 'does not fire events for which the lambda is not true' do
\ No newline at end of file