spec/spec_helper.rb in contentful_middleman-1.3.2 vs spec/spec_helper.rb in contentful_middleman-1.4.0

- old
+ new

@@ -45,22 +45,24 @@ access_token: 'b4c0n73n7fu1', cda_query: {}, content_types: {}, use_preview_api: false, all_entries: false, + all_entries_page_size: 1000, rebuild_on_webhook: false, webhook_timeout: 300, webhook_controller: ::ContentfulMiddleman::WebhookHandler } - def initialize(options = DEFAULT_OPTIONS) + def initialize(options = {}) + options = DEFAULT_OPTIONS.merge(options) options.each do |field, value| define_singleton_method(field.to_sym) do value end - define_singleton_method("#{field}=".to_sym) do |value| - options[field] = value + define_singleton_method("#{field}=".to_sym) do |v| + options[field] = v end end end end