Commit 8420f6099cfefe35cdc56e31a39b14f142983cd5
Committed by
Heitor
1 parent
477378bd
Exists in
colab
and in
4 other branches
Using a single instance of Repository.branch class throughout the tests.
Showing
1 changed file
with
8 additions
and
5 deletions
Show diff stats
spec/javascripts/repository/branch_spec.js.coffee
| 1 | 1 | #= require application |
| 2 | 2 | |
| 3 | -describe "Branch#constructor", -> | |
| 4 | - it "should construct a branch", -> | |
| 5 | - a = new Repository.Branch() | |
| 6 | - a.names.should.deep.equal({}) | |
| 7 | - assert.isNull(a.request) | |
| 3 | +describe "Repository.Branch", -> | |
| 4 | + beforeEach -> | |
| 5 | + @repository_branch = new Repository.Branch() | |
| 6 | + | |
| 7 | + describe "Branch#constructor", -> | |
| 8 | + it "should construct a branch", -> | |
| 9 | + @repository_branch.names.should.deep.equal({}) | |
| 10 | + assert.isNull(@repository_branch.request) | ... | ... |