Created
May 30, 2013 16:51
-
-
Save gustavowt/5679389 to your computer and use it in GitHub Desktop.
Aplicacoes basicas para estrutura de teste
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "#to_s" do | |
it "use name" do | |
... | |
end | |
end | |
context "with status active" do | |
before { ... } | |
it "validate behavior" do | |
... | |
end | |
end | |
describe "#unlock" do | |
before(:each) { subject.name = "test" } | |
context "when is true" do | |
before { subject.status = true } | |
it "unlock data" do | |
... | |
end | |
endv | |
context "when is false" do | |
before { subject.status = fase } | |
it "release data" do | |
... | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment