Commit caaa5b1302f3f82a6e7e3eab20ade0de104757b8
Exists in
colab
and in
4 other branches
Merge pull request #182 from mezuro/fixing_kalibro_module_name
Fixed kalibro module names on modules tree
Showing
4 changed files
with
6 additions
and
6 deletions
Show diff stats
Gemfile.lock
app/views/modules/_module_result.html.erb
app/views/modules/_module_tree.html.erb
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 | ... | ... |