README.md in climate_control-0.2.0 vs README.md in climate_control-1.0.0

- old
+ new

@@ -22,15 +22,31 @@ within a block: ```ruby ClimateControl.modify CONFIRMATION_INSTRUCTIONS_BCC: 'confirmation_bcc@example.com' do sign_up_as 'john@example.com' + confirm_account_for_email 'john@example.com' - current_email.should bcc_to('confirmation_bcc@example.com') + + expect(current_email).to bcc_to('confirmation_bcc@example.com') end ``` +To modify multiple environment variables: + +```ruby +ClimateControl.modify CONFIRMATION_INSTRUCTIONS_BCC: 'confirmation_bcc@example.com', + MAIL_FROM: 'us@example.com' do + sign_up_as 'john@example.com' + + confirm_account_for_email 'john@example.com' + + expect(current_email).to bcc_to('confirmation_bcc@example.com') + expect(current_email).to be_from('us@example.com') +end +``` + To use with RSpec, you could define this in your spec: ```ruby def with_modified_env(options, &block) ClimateControl.modify(options, &block) @@ -95,8 +111,10 @@ 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request +This project uses [StandardRB](https://github.com/testdouble/standard) to ensure formatting. + ## License -climate_control is copyright 2012-2017 Joshua Clayton and thoughtbot, inc. It is free software and may be redistributed under the terms specified in the [LICENSE.txt](https://github.com/thoughtbot/climate_control/blob/master/LICENSE.txt) file. +climate_control is copyright 2012-2021 Joshua Clayton and thoughtbot, inc. It is free software and may be redistributed under the terms specified in the [LICENSE](https://github.com/thoughtbot/climate_control/blob/main/LICENSE) file.