forked from ontoportal/ontoportal_web_ui
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69b2a21
commit 50526ca
Showing
6 changed files
with
53 additions
and
15 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
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,15 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'test_helper' | ||
|
||
class ApplicationControllerTest < ActionDispatch::IntegrationTest | ||
test 'should show home page' do | ||
get '' | ||
assert_response :success | ||
end | ||
|
||
test 'should show projects page' do | ||
get '/projects' | ||
assert_response :success | ||
end | ||
end |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'test_helper' | ||
|
||
class LandscapeControllerTest < ActionController::TestCase | ||
test "should get index" do | ||
test 'should get index' do | ||
skip('take too much time') | ||
get :index | ||
assert_response :success | ||
end | ||
|
||
end |
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,21 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'test_helper' | ||
|
||
class OntologiesControllerTest < ActionDispatch::IntegrationTest | ||
ONTOLOGIES = LinkedData::Client::Models::Ontology.all(include: 'acronym') | ||
PAGES = %w[summary classes properties notes mappings schemes collections widgets].freeze | ||
|
||
test 'should return all the ontologies' do | ||
get ontologies_path | ||
assert_response :success | ||
end | ||
|
||
ONTOLOGIES.sample(5).flat_map { |ont| PAGES.map { |page| [ont, page] } }.each do |ont, page| | ||
test "should get page #{page} of #{ont.acronym} ontology" do | ||
path = "#{ontologies_path}/#{ont.acronym}?p=#{page}" | ||
get path | ||
assert_response :success, "GET #{path} returned #{response.status}" | ||
end | ||
end | ||
end |