Skip to content

Instantly share code, notes, and snippets.

@elvisnm
Created October 25, 2013 21:10
Show Gist options
  • Select an option

  • Save elvisnm/7161890 to your computer and use it in GitHub Desktop.

Select an option

Save elvisnm/7161890 to your computer and use it in GitHub Desktop.
Failures:
1) ServerSchedule#update_filesets when new filesets is valid delete actual filesets and create new ones
Failure/Error: expect(after_server_schedule.updated_at).not_to eq(actual_updated_at)
expected: value != Fri, 25 Oct 2013 18:21:55 BRST -02:00
got: Fri, 25 Oct 2013 18:21:55 BRST -02:00
(compared using ==)
Diff:
# ./spec/models/server_schedule_spec.rb:141:in `block (4 levels) in <top (required)>'
2) Schedule scheduling_to_utc_time_zone daily schedule should return scheduling value with utc time zone
Failure/Error: schedule.scheduling_to_utc_time_zone.should == "daily/13:30"
expected: "daily/13:30"
got: "daily/12:30" (using ==)
# ./spec/models/schedule_spec.rb:273:in `block (4 levels) in <top (required)>'
3) Schedule scheduling_to_utc_time_zone weekly schedule should return scheduling value with utc time zone
Failure/Error: schedule.scheduling_to_utc_time_zone.should == "weekly/1/08:00"
expected: "weekly/1/08:00"
got: "weekly/1/07:00" (using ==)
# ./spec/models/schedule_spec.rb:280:in `block (4 levels) in <top (required)>'
4) Schedule scheduling_to_utc_time_zone monthly schedule should return scheduling value with utc time zone
Failure/Error: schedule.scheduling_to_utc_time_zone.should == "monthly/2/5/04:00"
expected: "monthly/2/5/04:00"
got: "monthly/2/5/03:00" (using ==)
# ./spec/models/schedule_spec.rb:287:in `block (4 levels) in <top (required)>'
5) Schedule.after_save #synchronize_with_dracula synchronize server schedule on Bascula before save
Failure/Error: expect(ServerSchedule.find(server_schedule).updated_at).not_to eq(before_updated_at)
expected: value != Fri, 25 Oct 2013 18:21:56 BRST -02:00
got: Fri, 25 Oct 2013 18:21:56 BRST -02:00
(compared using ==)
Diff:
# ./spec/models/schedule_spec.rb:56:in `block (4 levels) in <top (required)>'
Top 10 slowest examples (1.51 seconds, 18.3% of total time):
Schedule validations validating scheduling format when scheduling is monthly returns true when monthly format is ok
0.30022 seconds ./spec/models/schedule_spec.rb:209
Fileset Scopes .by_action should filter by action
0.15716 seconds ./spec/models/fileset_spec.rb:7
ServerSchedulesController GET show returns 404 when customer not found
0.14546 seconds ./spec/controllers/server_schedules_controller_spec.rb:44
ServerSchedule#run when run schedule on dracula and dracula client return 200 returns true
0.14323 seconds ./spec/models/server_schedule_spec.rb:180
ServerSchedule#schedule_name returns schedule name
0.14266 seconds ./spec/models/server_schedule_spec.rb:172
DraculaListServer#restores filters a customer's restores
0.13541 seconds ./spec/models/dracula_list_server_spec.rb:37
JobsController GET index returns a list of jobs by customer
0.13171 seconds ./spec/controllers/jobs_controller_spec.rb:181
ServerSchedulesController POST run returns 404 when schedule not belong to the server
0.12153 seconds ./spec/controllers/server_schedules_controller_spec.rb:287
Schedule validations validating scheduling format when scheduling is weekly returns false when hour or day of the week is invalid
0.11704 seconds ./spec/models/schedule_spec.rb:189
ServerSchedulesController PUT update returns 404 when schedule not found
0.11177 seconds ./spec/controllers/server_schedules_controller_spec.rb:231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment