Skip to content

Commit 941cc3c

Browse files
committed
quick fixed specs
1 parent c61dfa9 commit 941cc3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/usage/components/form_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,14 +517,14 @@ def form_config
517517
{
518518
for: @test_model,
519519
method: :put,
520-
path: "/test_models/#{@test_model.id}",
520+
path: "/some_test_models/#{@test_model.id}",
521521
success: { emit: "update_successful" },
522522
failure: { emit: "form_has_errors" }
523523
}
524524
end
525525
end
526526

527-
class TestModelsController < ApplicationController
527+
class SomeTestModelsController < ApplicationController
528528
include Matestack::Ui::Core::ApplicationHelper
529529

530530
def show
@@ -552,7 +552,7 @@ def test_model_params
552552
end
553553

554554
Rails.application.routes.draw do
555-
resources :test_models
555+
resources :some_test_models
556556
end
557557
end
558558

@@ -563,7 +563,7 @@ def test_model_params
563563
specify do
564564
test_model = TestModel.create title: "Foo", description: "This is a very nice foo!"
565565

566-
visit Rails.application.routes.url_helpers.test_model_path(test_model)
566+
visit Rails.application.routes.url_helpers.some_test_model_path(test_model)
567567
expect(find_field(:title).value).to eq "Foo"
568568

569569
fill_in :title, with: "Bar"

0 commit comments

Comments
 (0)