31件ヒット
[1-31件を表示]
(0.010秒)
種類
- クラス (12)
- インスタンスメソッド (12)
- 文書 (5)
- ライブラリ (2)
ライブラリ
- rubygems (12)
-
rubygems
/ exceptions (12)
モジュール
- Kernel (12)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (5) - RemoteInstallationSkipped (12)
-
minitest
/ unit (1) -
test
/ unit (1)
検索結果
先頭5件
-
Kernel
# gem(gem _ name , *version _ requirements) -> bool (18410.0) -
$LOAD_PATH に Ruby Gem を追加します。
...uby Gem を追加します。
指定された Gem をロードする前にその Gem が必要とする Gem をロードします。
バージョン情報を省略した場合は、最も高いバージョンの Gem をロードします。
指定された Gem やその Gem が必要とする Gem......が見つからなかった場合は
Gem::LoadError が発生します。
バージョンの指定方法に関しては Gem::Version を参照してください。
rubygems ライブラリがライブラリバージョンの衝突を検出しない限り、
gem メソッドは全ての require メ......=== 環境変数 GEM_SKIP
特定の Gem をロードしないようにするために環境変数 GEM_SKIP を定義することができます。
特定の Gem がまだインストールされていないという状況を試すために使用できます。
例:
GEM_SKIP=libA:libB ruby-I..... -
Gem
:: RemoteInstallationSkipped (9000.0) -
???
??? -
minitest
/ unit (30.0) -
ユニットテストを行うためのライブラリです。
...0 seconds.
1) Failure:
test_bar(TestFoo) [test_foo.rb:20]:
Expected "bar", not "foo".
2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
test_bar だけテストしたい場合は以下のようなオプションを与えます。
$ ruby test_foo.rb -n test_bar
Loaded suite t......0 seconds.
1) Failure:
test_bar(TestFoo) [test_foo.rb:20]:
Expected "bar", not "foo".
1 tests, 1 assertions, 1 failures, 0 errors, 0 skips
コンソールを使った testrunner のみ提供されています。
またヘルプを表示することもできません。
=== 使用......ます。
そうではなくて require 'minitest/unit' する場合は、テストクラスの定義時に親クラスを
MiniTest::Unit::TestCase にしなければなりません。
=== 注意
このライブラリは 2.2.0 で bundled gem(gemファイルのみを同梱)になりました。... -
NEWS for Ruby 3
. 0 . 0 (18.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...et
* Add :connect_timeout to TCPSocket.new 17187
* Net::HTTP
* Net::HTTP#verify_hostname= and Net::HTTP#verify_hostname have been added to skip hostname verification. 16555
* Net::HTTP.get, Net::HTTP.get_response, and Net::HTTP.get_print can take the request headers as a Hash in the s......patible.
* Psych
* Update to Psych 3.3.0
* This version is Ractor compatible.
* Reline
* Update to Reline 0.1.5
* RubyGems
* Update to RubyGems 3.2.3
* StringIO
* Update to StringIO 3.0.0
* This version is Ractor compatible.
* StringScanner
* Update to StringSca......893
* SortedSet has been removed for dependency and performance reasons.
== Stdlib compatibility issues
* Default gems
* The following libraries are promoted to default gems from stdlib.
* English
* abbrev
* base64
* drb
* debug
* erb
* find... -
test
/ unit (18.0) -
ユニットテストを行うためのライブラリです。
...ユニットテストを行うためのライブラリです。
このライブラリは 2.2.0 からbundled gem(gemファイルのみを同梱)になりまし
た。詳しい内容は下記のプロジェクトページを参照してください。
* Test::Unit - Ruby用単体テストフレ......test_bar(TC_Foo) [test_foo.rb:16]:
<"bar"> expected but was
<"foo">.
2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
test_bar だけテストしたい場合は以下のようなオプションを与えます。
$ ruby test_foo.rb --name test_bar......test_bar(TC_Foo) [test_foo.rb:16]:
<"bar"> expected but was
<"foo">.
1 tests, 1 assertions, 1 failures, 0 errors, 0 skips
--name=test_barのような指定は行えません。
以下のようにすると help も表示されます。
$ ruby test_foo.rb --help...