" style="--bubble-color: <%= @bubble.color %>;">
<%= render "bubbles/cards/perma", bubble: @bubble %>
diff --git a/config/routes.rb b/config/routes.rb
index 11f46b500..91b6559c8 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -15,6 +15,7 @@ Rails.application.routes.draw do
resource :pin
resource :pop
resource :publish
+ resource :reading
resource :recover
resource :watch
@@ -50,10 +51,6 @@ Rails.application.routes.draw do
resources :comments do
resources :reactions, module: :comments
end
- resource :readings, only: :create
-
- scope module: :bubbles do
- end
end
end
diff --git a/test/controllers/readings_controller_test.rb b/test/controllers/bubbles/readings_controller_test.rb
similarity index 59%
rename from test/controllers/readings_controller_test.rb
rename to test/controllers/bubbles/readings_controller_test.rb
index 7d124736d..3cc682d83 100644
--- a/test/controllers/readings_controller_test.rb
+++ b/test/controllers/bubbles/readings_controller_test.rb
@@ -1,13 +1,13 @@
require "test_helper"
-class ReadingsControllerTest < ActionDispatch::IntegrationTest
+class Bubbles::ReadingsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "index" do
assert_changes -> { notifications(:logo_published_kevin).reload.read? }, from: false, to: true do
- post bucket_bubble_readings_url(bubbles(:logo).bucket, bubbles(:logo)), as: :turbo_stream
+ post bubble_reading_url(bubbles(:logo)), as: :turbo_stream
end
assert_response :success