travis-ci
6514 of 7709 relevant lines covered (84.5%)
314.87 hits per line
1 |
# frozen_string_literal: true
|
× |
2 |
module Course::AchievementConditionalConcern |
1 only 2.3.1, GROUP=2 ✔ |
3 |
extend ActiveSupport::Concern |
1 only 2.3.1, GROUP=2 ✔ |
4 |
|
× |
5 |
included do
|
1 only 2.3.1, GROUP=2 ✔ |
6 |
before_action :add_conditional_breadcrumbs
|
3 only 2.3.1, GROUP=2 ✔ |
7 |
end
|
× |
8 |
|
× |
9 |
def return_to_path |
1 only 2.3.1, GROUP=2 ✔ |
10 |
edit_course_achievement_path(current_course, @conditional)
|
13 only 2.3.1, GROUP=2 ✔ |
11 |
end
|
× |
12 |
|
× |
13 |
def set_conditional |
1 only 2.3.1, GROUP=2 ✔ |
14 |
@conditional = Course::Achievement.find(params[:achievement_id]) |
27 only 2.3.1, GROUP=2 ✔ |
15 |
end
|
× |
16 |
|
× |
17 |
private |
1 only 2.3.1, GROUP=2 ✔ |
18 |
|
× |
19 |
def add_conditional_breadcrumbs |
1 only 2.3.1, GROUP=2 ✔ |
20 |
add_breadcrumb :index, :course_achievements_path |
27 only 2.3.1, GROUP=2 ✔ |
21 |
add_breadcrumb @conditional.title, edit_course_achievement_path(current_course, @conditional) |
27 only 2.3.1, GROUP=2 ✔ |
22 |
end
|
× |
23 |
end
|
× |