ruby - how to use tags within examples for minitest
问题 I have require 'minitest/spec' require 'minitest/autorun' require 'minitest/tags' require 'rspec/expectations' describe "One happy and one sad test", :happy do include RSpec::Matchers it "it is true" do expect(true).to be true end it "it is false" do expect(false).to be true end end and the describe tag works but I can't add a tag to the it , as in it "it is true", :happy do expect(true).to be true end without getting: $ ruby test_example.rb ...1: from test_example.rb:9:in `block in <main>' .