Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ checks:
plugins:
brakeman:
enabled: true
exclude_patterns:
# Excluding User Flows tools since these are not loaded
# except when explicitly called from the User Flow rake tasks
- 'lib/user_flow_exporter.rb'
- 'lib/rspec/formatters/user_flow_formatter.rb'
bundler-audit:
enabled: true
coffeelint:
Expand All @@ -53,8 +48,6 @@ plugins:
- 'node_modules/**/*'
- 'db/schema.rb'
- 'app/forms/password_form.rb'
- 'lib/user_flow_exporter.rb'
- 'lib/rspec/formatters/user_flow_formatter.rb'
fixme:
enabled: true
exclude_patterns:
Expand All @@ -81,9 +74,7 @@ exclude_patterns:
- 'db/schema.rb'
- 'node_modules/'
- 'lib/proofer_mocks/'
- 'lib/rspec/formatters/user_flow_formatter.rb'
- 'lib/tasks/create_test_accounts.rb'
- 'lib/user_flow_exporter.rb'
- 'scripts/load_testing/'
- 'tmp/'
- 'config/initializers/jwt.rb'
Expand Down
2 changes: 0 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ AllCops:
- 'bin/**/*'
- 'db/migrate/*'
- 'db/schema.rb'
- 'lib/rspec/user_flow_formatter.rb'
- 'lib/tasks/create_test_accounts.rb'
- 'lib/user_flow_exporter.rb'
- 'node_modules/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
Expand Down
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,30 +268,6 @@ The Geolite2-City database can be downloaded from MaxMind's site at [https://dev
Download the GeoIP2 Binary and save it at `geo_data/GeoLite2-City.mmdb`.
The app will start using that Geolite2 file for geolocation after restart.

### User flows

We have an automated tool for generating user flows using real views generated from the application. These specs are excluded from our typical spec run because of the overhead of generating screenshots for each view.

The local instance of the application must be running in order to serve up the assets (eg. `make run`). Then, you can specify where the assets are hosted from and generate the views with:

```
$ RAILS_ASSET_HOST=localhost:3000 rake spec:user_flows
```

Then, visit http://localhost:3000/user_flows in your browser!

##### Exporting

The user flows tool also has an export feature which allows you to export everything for the web. You may host these assets with someting like [`simplehttpserver`](https://www.npmjs.com/package/simplehttpserver) or publish to [Federalist](https://federalist.18f.gov/). To publish user flows for Federalist, first make sure the application is running locally (eg. localhost:3000) and run:

```
$ RAILS_ASSET_HOST=localhost:3000 FEDERALIST_PATH=/site/user/repository rake spec:user_flows:web
```

This will output your site to `public/site/user/repository` for quick publishing to [Federalist](https://federalist-docs.18f.gov/pages/using-federalist/). To test compatibility, run `simplehttpserver` from the app's `public` folder and visit `http://localhost:8000/<FEDERALIST PATH>/user_flows` in your browser.

[laptop script]: https://github.com/18F/laptop

### Proofing vendors

Some proofing vendor code is located in private Github repositories because of NDAs. You can still use it
Expand Down
78 changes: 0 additions & 78 deletions lib/rspec/formatters/user_flow_formatter.rb

This file was deleted.

19 changes: 0 additions & 19 deletions lib/tasks/user_flows.rake

This file was deleted.

93 changes: 0 additions & 93 deletions lib/user_flow_exporter.rb

This file was deleted.

Loading