README.md in trice-0.1.0 vs README.md in trice-0.1.1

- old
+ new

@@ -97,19 +97,19 @@ #### Enable/Disable stubbing Toggle requested at stubbing in `config/initializers`. The default is below, enabled unelss `Rails.env.production?`. ```ruby -Trice.support_performing_at_stubbing = !Rails.env.production? +Trice.support_requested_at_stubbing = !Rails.env.production? ``` Setting callable object let you choice enable/disable dinamically by seeing request. ```ruby our_office_network = IPAddr.new('203.0.113.0/24') -Trice.support_performing_at_stubbing = ->(controller) { +Trice.support_requested_at_stubbing = ->(controller) { next true unless Rails.env.production? our_office_network.include?(controller.request.remote_ip) } ``` @@ -122,10 +122,10 @@ RSpec.configure do |config| config.extend Trice::SpecHelper end ``` -I recommend to pass reference time to a modle by method and/or constructor argument because reference time is an external input, should be handled controller layer. +I recommend to pass reference time to a model by method and/or constructor argument because reference time is an external input, should be handled controller layer. But sometimes it is required from deep inside of model logics and tests for them. Model unit spec has `with_refrence_time` and `set_now_to_reference_time` declarition method to set `Trice.reference_time` in an example. ```ruby