diff --git a/app/views/reviews/_review_content.html.erb b/app/views/reviews/_review_content.html.erb index 49a039d9..92c1d198 100644 --- a/app/views/reviews/_review_content.html.erb +++ b/app/views/reviews/_review_content.html.erb @@ -1,10 +1,10 @@ <% show_full_review = false unless defined?(:show_full_review) %>

- + <%= inline_svg_tag 'star', class: 'text-pink-600' if review.star_rating %> <%= review.star_rating %> - <%= t("reviews.stars_given", count: review.star_rating) %> + <%= t("reviews.stars_given", count: review.star_rating.to_i) %> <% unless review.star_rating %> - <% if review.type_of_contact %> diff --git a/spec/features/user_manages_space_spec.rb b/spec/features/user_manages_space_spec.rb index bdf7af72..959557e3 100644 --- a/spec/features/user_manages_space_spec.rb +++ b/spec/features/user_manages_space_spec.rb @@ -27,14 +27,14 @@ fill_in "space_post_number", with: space.post_number find("body").click # Blur from field - expect(page).to have_text(I18n.t("space_create.any_of_these.one")) + expect(page).to have_content(I18n.t("space_create.any_of_these.one")) click_on I18n.t("space_create.none_are_duplicates.one") tom_select("select#space_space_type_ids", option_id: space_type.id) tom_select("select#space_space_group_title", option_id: space_group.title) click_on I18n.t("helpers.submit.create", model: Space.model_name.human) - expect(page).to have_text(space.title) + expect(page).to have_content(space.title) end end