Commit a9f330af208f2bb1919b775e3cd1721dbf8786a4

Authored by Heitor
1 parent 0851f743

Fixed kalibro module names on modules tree

Signed off by: Diego Araújo <diegoamc90@gmail.com>
Gemfile.lock
... ... @@ -154,7 +154,7 @@ GEM
154 154 jquery-ui-rails (5.0.3)
155 155 railties (>= 3.2.16)
156 156 json (1.8.2)
157   - kalibro_client (0.0.2)
  157 + kalibro_client (0.0.3)
158 158 activesupport (>= 2.2.1)
159 159 faraday_middleware (~> 0.9.0)
160 160 konacha (3.3.0)
... ...
app/views/modules/_module_result.html.erb
... ... @@ -9,4 +9,4 @@
9 9 </td>
10 10 <td><%= module_result.kalibro_module.granularity %></td>
11 11 <td><%= format_grade(module_result.grade) %></td>
12   -</tr>
13 12 \ No newline at end of file
  13 +</tr>
... ...
app/views/modules/_module_tree.html.erb
... ... @@ -28,4 +28,4 @@
28 28 </tbody>
29 29 </table>
30 30 <% end %>
31   -<% end %>
32 31 \ No newline at end of file
  32 +<% end %>
... ...
features/step_definitions/repository_steps.rb
... ... @@ -95,7 +95,7 @@ When(/^I visit the repository show page$/) do
95 95 end
96 96  
97 97 When(/^I click on the sample child's name$/) do
98   - click_link @module_result.children.first.kalibro_module.name
  98 + click_link @module_result.children.first.kalibro_module.short_name
99 99 end
100 100  
101 101 When(/^I click the "(.*?)" h3$/) do |text|
... ... @@ -118,11 +118,11 @@ Then(/^I should see the sample repository name$/) do
118 118 end
119 119  
120 120 Then(/^I should see the given module result$/) do
121   - expect(page).to have_content(@module_result.kalibro_module.name)
  121 + expect(page).to have_content(@module_result.kalibro_module.short_name)
122 122 end
123 123  
124 124 Then(/^I should see a sample child's name$/) do
125   - expect(page).to have_content(@module_result.children.first.kalibro_module.name)
  125 + expect(page).to have_content(@module_result.children.first.kalibro_module.short_name)
126 126 end
127 127  
128 128 Then(/^I should see the given repository's content$/) do
... ...