Skip to content

Commit b582980

Browse files
committed
Remove the dummy app used in test
This is no longer required as Shoelace handles form submission by itself.
1 parent 3a5223b commit b582980

32 files changed

+2
-658
lines changed

.github/workflows/main.yml

-35
Original file line numberDiff line numberDiff line change
@@ -85,38 +85,3 @@ jobs:
8585
ruby-version: 'ruby-head'
8686
bundler-cache: true
8787
- run: bundle exec rake || echo "Ruby edge test is done."
88-
89-
# browser_tests:
90-
# runs-on: ubuntu-22.04
91-
# steps:
92-
# - uses: actions/checkout@v3
93-
# - name: Set up Ruby
94-
# uses: ruby/setup-ruby@v1
95-
# with:
96-
# ruby-version: 3.2.0
97-
# bundler-cache: true
98-
# - name: Install dependencies
99-
# run: |
100-
# rm -rf node_modules &&
101-
# yarn install &&
102-
# yarn add tslib &&
103-
# bundle
104-
# - name: 'BrowserStack Env Setup'
105-
# uses: 'browserstack/github-actions/setup-env@master'
106-
# with:
107-
# username: ${{ secrets.BROWSERSTACK_USERNAME }}
108-
# access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
109-
# - name: 'Start BrowserStackLocal Tunnel'
110-
# uses: 'browserstack/github-actions/setup-local@master'
111-
# with:
112-
# local-testing: 'start'
113-
# local-logging-level: 'all-logs'
114-
# local-identifier: 'random'
115-
# - name: Run the system test in the dummy app
116-
# run: rake test:system
117-
# env:
118-
# BROWSERSTACK_URL: ${{ secrets.BROWSERSTACK_URL }}
119-
# - name: 'Stop BrowserStackLocal'
120-
# uses: 'browserstack/github-actions/setup-local@master'
121-
# with:
122-
# local-testing: 'stop'

Rakefile

+2-17
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,7 @@ require "rake/testtask"
66
Rake::TestTask.new(:test) do |t|
77
t.libs << "test"
88
t.libs << "lib"
9-
t.test_files = FileList["test/**/*_test.rb"].exclude("test/dummy_app/**/*")
9+
t.test_files = FileList["test/**/*_test.rb"]
1010
end
1111

12-
namespace :test do
13-
task :system do
14-
Bundler.with_original_env do
15-
sh <<~CMD
16-
yarn build &&
17-
cd test/dummy_app &&
18-
yarn &&
19-
bundle &&
20-
RAILS_ENV=test rails webpacker:compile
21-
rails test:system
22-
CMD
23-
end
24-
end
25-
end
26-
27-
task default: [:test, :'test:system']
12+
task default: [:test]

test/dummy_app/Gemfile

-19
This file was deleted.

test/dummy_app/Rakefile

-6
This file was deleted.

test/dummy_app/app/controllers/hotwire_forms_controller.rb

-46
This file was deleted.

test/dummy_app/app/controllers/turbolinks_forms_controller.rb

-37
This file was deleted.

test/dummy_app/app/models/user.rb

-16
This file was deleted.

test/dummy_app/app/packs/entrypoints/hotwire.js

-1
This file was deleted.

test/dummy_app/app/packs/entrypoints/turbolinks.js

-5
This file was deleted.

test/dummy_app/app/views/hotwire_forms/form.html.erb

-45
This file was deleted.

test/dummy_app/app/views/hotwire_forms/show.html.erb

-5
This file was deleted.

test/dummy_app/app/views/layouts/application.html.erb

-39
This file was deleted.

test/dummy_app/app/views/turbolinks_forms/form.html.erb

-44
This file was deleted.

test/dummy_app/app/views/turbolinks_forms/show.html.erb

-5
This file was deleted.

test/dummy_app/bin/rails

-5
This file was deleted.

test/dummy_app/bin/webpack

-18
This file was deleted.

test/dummy_app/bin/yarn

-18
This file was deleted.

test/dummy_app/config.ru

-6
This file was deleted.

0 commit comments

Comments
 (0)