lita-onewheel-forecast-io 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -170,6 +170,7 @@ describe Lita::Handlers::OnewheelForecastIo, lita_handler: true do
170
170
  it { is_expected.to route_command('dailybarometer') }
171
171
  it { is_expected.to route_command('neareststorm') }
172
172
  it { is_expected.to route_command('tomorrow') }
173
+ it { is_expected.to route_command('windows') }
173
174
 
174
175
  # This is where we test for regex overflow, so !weeklyrain doesn't try to get a forecast for Rain, Germany.
175
176
  it { is_expected.not_to route_command('forecastrain') }
@@ -509,6 +510,12 @@ describe Lita::Handlers::OnewheelForecastIo, lita_handler: true do
509
510
  expect(replies.last).to eq('Tomorrow will be much hotter than today.')
510
511
  end
511
512
 
513
+ it '!windows' do
514
+ mock_up 'windows'
515
+ send_command 'windows'
516
+ expect(replies.last).to eq('Close your windows at 11am.')
517
+ end
518
+
512
519
  # it 'colors strings' do
513
520
  # cstr = Lita::Handlers::ForecastIo.get_colored_string([{:key => 1}], :key, 'x', {1 => :blue})
514
521
  # expect(cstr).to equal('x')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-forecast-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-26 00:00:00.000000000 Z
11
+ date: 2016-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -196,6 +196,7 @@ files:
196
196
  - spec/fixtures/mock_weather_no_minute.json
197
197
  - spec/fixtures/mock_weather_with_snow.json
198
198
  - spec/fixtures/much_warmer.json
199
+ - spec/fixtures/windows.json
199
200
  - spec/lita/handlers/forecast_io_spec.rb
200
201
  - spec/spec_helper.rb
201
202
  homepage: https://github.com/onewheelskyward/lita-onewheel-forecast-io
@@ -229,5 +230,6 @@ test_files:
229
230
  - spec/fixtures/mock_weather_no_minute.json
230
231
  - spec/fixtures/mock_weather_with_snow.json
231
232
  - spec/fixtures/much_warmer.json
233
+ - spec/fixtures/windows.json
232
234
  - spec/lita/handlers/forecast_io_spec.rb
233
235
  - spec/spec_helper.rb