jeudi 1 septembre 2016

How do I call a specific test from another file in ruby

I Wrote a general testing file which includes a few tests. I want to write a few files that will use those tests, each file will run specific tests (not all of them).

A test example:

class AccountBase 
 describe "TC_ACCOUNT" do
  it "Fill info Fields" do
  #test here
  end
 end
end

Lets call it baseTests.rb. Now I have another file - infoTest.rb . How can I call "Fill info Fields" from within infoTest Thanks.

Aucun commentaire:

Enregistrer un commentaire