Commit 8420f6099cfefe35cdc56e31a39b14f142983cd5

Authored by Diego Camarinha
Committed by Heitor
1 parent 477378bd

Using a single instance of Repository.branch class throughout the tests.

spec/javascripts/repository/branch_spec.js.coffee
1 #= require application 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)