-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Having the client and server both use the `/analysis_jobs` route was nearly impossible to get working. Instead, the client moved its UI to `/audio_analysis` in QutEcoacoustics/baw-client@21b0fc8. Also committing unit tests for the Rack::Rewrite rewrite rules which were previously untested.
- Loading branch information
Showing
2 changed files
with
40 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
require 'rails_helper' | ||
|
||
describe 'Rack rewrite', :type => :feature do # :type => :routing | ||
describe :routing do | ||
|
||
client_app_content = 'Client application placeholder This is the page that will be rendered if a client side view needs to be rendered.' | ||
|
||
it { | ||
visit '/listen' | ||
expect(page.text).to include(client_app_content) | ||
} | ||
|
||
it { | ||
visit '/birdwalks' | ||
expect(page.text).to include(client_app_content) | ||
} | ||
|
||
it { | ||
visit '/library' | ||
expect(page.text).to include(client_app_content) | ||
} | ||
|
||
it { | ||
visit '/demo' | ||
expect(page.text).to include(client_app_content) | ||
} | ||
|
||
it { | ||
visit '/visualize' | ||
expect(page.text).to include(client_app_content) | ||
} | ||
|
||
it { | ||
visit '/audio_analysis' | ||
expect(page.text).to include(client_app_content) | ||
} | ||
|
||
end | ||
end |