Skip to content

Instantly share code, notes, and snippets.

@gustavowt
Created May 30, 2013 16:51
Show Gist options
  • Save gustavowt/5679389 to your computer and use it in GitHub Desktop.
Save gustavowt/5679389 to your computer and use it in GitHub Desktop.
Aplicacoes basicas para estrutura de teste
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