Skip to content

Commit 9a983ac

Browse files
committed
Test fix for described_class meant to be metadata
1 parent 6ab848a commit 9a983ac

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

spec/examples/daily_rule_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module IceCube
2727

2828
describe DailyRule do
2929

30-
context :system_time_zone => 'America/Vancouver' do
30+
describe 'in Vancouver time', :system_time_zone => 'America/Vancouver' do
3131

3232
it 'should include nearest time in DST start hour' do
3333
schedule = Schedule.new(t0 = Time.local(2013, 3, 9, 2, 30, 0))

spec/examples/hourly_rule_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module IceCube
2626
end
2727
end
2828

29-
context :system_time_zone => 'America/Vancouver' do
29+
context 'in Vancouver time', :system_time_zone => 'America/Vancouver' do
3030

3131
it 'should work across DST start hour' do
3232
schedule = Schedule.new(t0 = Time.local(2013, 3, 10, 1, 0, 0))

spec/examples/weekly_rule_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module IceCube
2727

2828
describe WeeklyRule do
2929

30-
context :system_time_zone => 'America/Vancouver' do
30+
context 'in Vancouver time', :system_time_zone => 'America/Vancouver' do
3131

3232
it 'should include nearest time in DST start hour' do
3333
schedule = Schedule.new(t0 = Time.local(2013, 3, 3, 2, 30, 0))

spec/spec_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131

3232
config.around :each do |example|
3333
if zone = example.metadata[:system_time_zone]
34-
@orig_zone = ENV['TZ']
34+
orig_zone = ENV['TZ']
3535
ENV['TZ'] = zone
3636
example.run
37-
ENV['TZ'] = @orig_zone
37+
ENV['TZ'] = orig_zone
3838
else
3939
example.run
4040
end

0 commit comments

Comments
 (0)