0
运行rspec的这是红宝石样品RSpec的如何与多个标签
require "rspec"
describe "Testing" do
it "test1",:status => "low" do
puts "test1"
expect(true).to eq true
end
it "test2",:status => "high" do
puts "test2"
expect(true).to eq true
end
it "test3",:status => "low" do
puts "test3"
expect(true).to eq true
end
it "test4",:status => "medium" do
puts "test4"
expect(true).to eq true
end
end
这是运行在高状态测试
rspec file_name --tag @status:"high"
现在我想在高位运行,中的地位命令案例。任何想法?