と説明あなたはあなたが真実テストのみ1、それかTestUnitでRSpecの
ruby -Itest test/unit/user_test.rb -n test_the_truth
のみテストを実行することができます例
require 'test_helper'
class UserTest < ActiveSupport::TestCase
test "the truth" do
assert true
end
test "the truth 2" do
assert true
end
end
ために-nオプションを使用してファイルに
を一つのテストを起動することができます
ザウエット
1 tests, 1 assertions, 0 failures, 0 errors, 0 skip
どのようにrspecでそれができますか?
コマンドは、あなたがあなたのスペックのソースが含まれていなかったので、それは問題がどこにあるか言うのは難しいのですが、一般的に、あなたが実行する-e
オプションを使用することができます
rspec spec/models/user_spec.rb -e "User the truth"
私はもう一度試してみて、それが動作します!私は何が起こったのか本当に理解していない....しかし、それは私がそれに戻って行ったので、あなたの答えに感謝! –