Skip to content

Instantly share code, notes, and snippets.

@parthaa
Created April 24, 2013 21:41
Show Gist options
  • Save parthaa/5455822 to your computer and use it in GitHub Desktop.
Save parthaa/5455822 to your computer and use it in GitHub Desktop.
Run options: --seed 17358
# Running tests:
You are using WebMock 1.11.0. VCR is known to work with WebMock >= 1.8.0, < 1.10. It may not work with this version.
.........................................................S.........................................................................................................................................................DEPRECATION WARNING: You're trying to create an attribute `content_view_id'. Writing arbitrary attributes on a model is deprecated. Please just use `attr_writer` etc. (called from create_distributor at /home/paji/katello/katello/src/test/support/candlepin/consumer_support.rb:74)
S.DEPRECATION WARNING: You're trying to create an attribute `content_view_id'. Writing arbitrary attributes on a model is deprecated. Please just use `attr_writer` etc. (called from create_distributor at /home/paji/katello/katello/src/test/support/candlepin/consumer_support.rb:74)
......S....SSSSSS....................S.......................................................................................................................................................................................................................................................................................................................FSEFE....
Finished tests in 151.649788s, 3.7653 tests/s, 7.5503 assertions/s.
1) Failure:
test_0002_does not use ENV variables(best practices) [/home/paji/katello/katello/src/test/source_code_test.rb:55]:
Katello.config or Katello.early_config should be always used instead of ENV variables, Katello.config is
the single entry point to configuration. ENV variables are processed there.
check lines:
- /home/paji/katello/katello/src/vendor/alchemy/test/test_helper.rb:2: ENV["RAILS_ENV"] = "test"
2) Error:
test_0001_does not have trailing whitespaces(formatting):
ArgumentError: invalid byte sequence in UTF-8
/home/paji/katello/katello/src/test/source_code_test.rb:66:in `=~'
/home/paji/katello/katello/src/test/source_code_test.rb:66:in `!~'
/home/paji/katello/katello/src/test/source_code_test.rb:66:in `block (3 levels) in <class:SourceCodeTest>'
/home/paji/katello/katello/src/test/source_code_test.rb:52:in `call'
/home/paji/katello/katello/src/test/source_code_test.rb:52:in `block in check_lines'
/home/paji/katello/katello/src/test/source_code_test.rb:46:in `[]'
/home/paji/katello/katello/src/test/source_code_test.rb:46:in `block (2 levels) in each_line'
/home/paji/katello/katello/src/test/source_code_test.rb:46:in `each_line'
/home/paji/katello/katello/src/test/source_code_test.rb:46:in `each_with_index'
/home/paji/katello/katello/src/test/source_code_test.rb:46:in `block in each_line'
/home/paji/katello/katello/src/test/source_code_test.rb:40:in `[]'
/home/paji/katello/katello/src/test/source_code_test.rb:40:in `block in each_file'
/home/paji/katello/katello/src/test/source_code_test.rb:40:in `each'
/home/paji/katello/katello/src/test/source_code_test.rb:40:in `each_file'
/home/paji/katello/katello/src/test/source_code_test.rb:45:in `each_line'
/home/paji/katello/katello/src/test/source_code_test.rb:51:in `each'
/home/paji/katello/katello/src/test/source_code_test.rb:51:in `map'
/home/paji/katello/katello/src/test/source_code_test.rb:51:in `check_lines'
/home/paji/katello/katello/src/test/source_code_test.rb:64:in `block (2 levels) in <class:SourceCodeTest>'
3) Failure:
test_0002_does use soft-tabs(formatting) [/home/paji/katello/katello/src/test/source_code_test.rb:55]:
check lines:
- /home/paji/katello/katello/src/vendor/alchemy/app/assets/stylesheets/alchemy/components/login/_login.scss:166: .container {
- /home/paji/katello/katello/src/vendor/alchemy/app/assets/stylesheets/alchemy/components/login/_login.scss:168: }
4) Error:
test_0001_does not use interpolation or multiple anonymous placeholders(gettext):
ArgumentError: invalid byte sequence in UTF-8
/home/paji/katello/katello/src/test/source_code_test.rb:121:in `scan'
/home/paji/katello/katello/src/test/source_code_test.rb:121:in `block (3 levels) in <class:SourceCodeTest>'
/home/paji/katello/katello/src/test/source_code_test.rb:52:in `call'
/home/paji/katello/katello/src/test/source_code_test.rb:52:in `block in check_lines'
/home/paji/katello/katello/src/test/source_code_test.rb:46:in `[]'
/home/paji/katello/katello/src/test/source_code_test.rb:46:in `block (2 levels) in each_line'
/home/paji/katello/katello/src/test/source_code_test.rb:46:in `each_line'
/home/paji/katello/katello/src/test/source_code_test.rb:46:in `each_with_index'
/home/paji/katello/katello/src/test/source_code_test.rb:46:in `block in each_line'
/home/paji/katello/katello/src/test/source_code_test.rb:40:in `[]'
/home/paji/katello/katello/src/test/source_code_test.rb:40:in `block in each_file'
/home/paji/katello/katello/src/test/source_code_test.rb:40:in `each'
/home/paji/katello/katello/src/test/source_code_test.rb:40:in `each_file'
/home/paji/katello/katello/src/test/source_code_test.rb:45:in `each_line'
/home/paji/katello/katello/src/test/source_code_test.rb:51:in `each'
/home/paji/katello/katello/src/test/source_code_test.rb:51:in `map'
/home/paji/katello/katello/src/test/source_code_test.rb:51:in `check_lines'
/home/paji/katello/katello/src/test/source_code_test.rb:116:in `block (2 levels) in <class:SourceCodeTest>'
571 tests, 1145 assertions, 2 failures, 2 errors, 11 skips
rake aborted!
Command failed with status (1): [ruby -I"lib:test" -I"/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib" "/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/rake_test_loader.rb" "test//**/*_test.rb" ]
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/testtask.rb:104:in `block (3 levels) in define'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `call'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils.rb:45:in `sh'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `sh'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils.rb:82:in `ruby'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in `ruby'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/testtask.rb:100:in `block (2 levels) in define'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:58:in `verbose'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/testtask.rb:98:in `block in define'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/home/paji/.rvm/gems/ruby-1.9.3-p286/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/home/paji/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `eval'
/home/paji/.rvm/gems/ruby-1.9.3-p286/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => minitest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment