-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from dmacvicar/dmacvicar_testing
Fix tests and add them to travis
- Loading branch information
Showing
11 changed files
with
532 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ rvm: | |
- 2.4.3 | ||
script: | ||
- 'bundle exec rubocop -D' | ||
- 'bundle exec rails test' |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ def prepare_desc(desc) | |
end | ||
|
||
def default_baseproject | ||
'openSUSE:Leap:42.2' | ||
'openSUSE:Leap:42.3' | ||
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
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
require 'test_helper' | ||
require File.expand_path('../../test_helper', __FILE__) | ||
|
||
class PackageInformationTest < ActionDispatch::IntegrationTest | ||
|
||
def test_package_information | ||
# Check that package information is displayed | ||
visit '/package/pidgin' | ||
assert page.has_content? 'Pidgin' | ||
assert page.has_content? 'InstantMessaging' | ||
assert page.has_content? 'Multiprotocol Instant Messaging Client' | ||
assert page.has_content? 'Pidgin is a chat program' | ||
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,11 @@ | ||
require File.expand_path('../../test_helper', __FILE__) | ||
|
||
class AppdataTest < ActiveSupport::TestCase | ||
test 'Factory Appdata can be parsed' do | ||
appdata = Appdata.get('factory') | ||
pkg_list = appdata[:apps].map { |p| p[:pkgname] }.uniq | ||
|
||
assert_equal 4, pkg_list.size | ||
assert_equal ['0ad', '4pane', 'opera', 'steam'], pkg_list | ||
end | ||
end |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
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