1
0
mirror of https://github.com/danog/gift.git synced 2024-11-30 04:19:37 +01:00

Fix deprecated should calls

This commit is contained in:
Maximilian Schüßler 2014-06-19 21:53:13 +02:00
parent 78948e2553
commit 4a7aa57a6b
4 changed files with 28 additions and 28 deletions

View File

@ -27,7 +27,7 @@ describe "Blob", ->
it "is a string", ->
data.should.be.type "string"
data.should.include "Bla"
data.should.containEql "Bla"
describe "of a file in a subdir", ->
repo = git "#{__dirname}/fixtures/branched"
@ -41,7 +41,7 @@ describe "Blob", ->
it "is a string", ->
data.should.be.type "string"
data.should.include "!!!"
data.should.containEql "!!!"
describe "#dataStream", ->
describe "of a file off the root", ->
@ -57,7 +57,7 @@ describe "Blob", ->
it "is a string", ->
data.should.be.type "string"
data.should.include "Bla"
data.should.containEql "Bla"
describe "of a file in a subdir", ->
repo = git "#{__dirname}/fixtures/branched"
@ -73,6 +73,6 @@ describe "Blob", ->
it "is a string", ->
data.should.be.type "string"
data.should.include "!!!"
data.should.containEql "!!!"

View File

@ -45,8 +45,8 @@ describe "Head", ->
it "contains the branches", ->
heads.should.have.lengthOf 2
names = _.map heads, ((b) -> b.name)
names.should.include "master"
names.should.include "something"
names.should.containEql "master"
names.should.containEql "something"
describe ".current", ->

View File

@ -224,7 +224,7 @@ describe "Repo", ->
done err
it "is the latest commit on the tag", ->
commits[0].message.should.include "commit 5"
commits[0].message.should.containEql "commit 5"
describe "limit the number of commits", ->
repo = fixtures.tagged
@ -246,7 +246,7 @@ describe "Repo", ->
done err
it "returns 2 commits", ->
commits[0].message.should.include "commit 4"
commits[0].message.should.containEql "commit 4"
describe "with or without gpg signature", ->
repo = fixtures.gpgsigned
@ -286,8 +286,8 @@ describe "Repo", ->
it "checks out branch:master", (done) ->
repo.tree().blobs (err, blobs) ->
blobs[0].data (err, data) ->
data.should.include "Bla"
data.should.not.include "Bla2"
data.should.containEql "Bla"
data.should.not.containEql "Bla2"
done err
describe "specific branch", ->
@ -297,7 +297,7 @@ describe "Repo", ->
it "checks out branch:something", (done) ->
repo.tree("something").blobs (err, blobs) ->
blobs[0].data (err, data) ->
data.should.include "Bla2"
data.should.containEql "Bla2"
done err

View File

@ -37,7 +37,7 @@ describe "Tag", ->
done err
it "is the correct message", ->
message.should.include "the first tag"
message.should.containEql "the first tag"
it "has the correct commit", ->
tags[0].commit.message.should.eql "commit 5"