aboutsummaryrefslogtreecommitdiffhomepage
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/fixtures/test.git/git/indexbin137 -> 209 bytes
-rw-r--r--spec/fixtures/test.git/git/logs/HEAD1
-rw-r--r--spec/fixtures/test.git/git/logs/refs/heads/curly1
-rw-r--r--spec/fixtures/test.git/git/objects/01/d6dc2234bda69a289104ffdf9667363a2414bd2
-rw-r--r--spec/fixtures/test.git/git/objects/37/018e429ad00f0ec961bd218e3dfa6a6e8cc05b1
-rw-r--r--spec/fixtures/test.git/git/objects/77/b5c76d003b18b78c41b86e36884ce49f40c259bin0 -> 66 bytes
-rw-r--r--spec/fixtures/test.git/git/objects/cf/e8bc15022f8b4d3cea89bc20abb13f985feeb0bin0 -> 60 bytes
-rw-r--r--spec/fixtures/test.git/git/refs/heads/curly2
-rw-r--r--spec/fixtures/test.git/world.es65
-rw-r--r--spec/pronto/eslint_spec.rb4
10 files changed, 13 insertions, 3 deletions
diff --git a/spec/fixtures/test.git/git/index b/spec/fixtures/test.git/git/index
index 786f76d..0b50aa9 100644
--- a/spec/fixtures/test.git/git/index
+++ b/spec/fixtures/test.git/git/index
Binary files differ
diff --git a/spec/fixtures/test.git/git/logs/HEAD b/spec/fixtures/test.git/git/logs/HEAD
index 7e44d13..a4f13f8 100644
--- a/spec/fixtures/test.git/git/logs/HEAD
+++ b/spec/fixtures/test.git/git/logs/HEAD
@@ -11,3 +11,4 @@ e438134aac40ce86789d552f1bdada6582a987f6 85e04b1eb1a721d42db51d49e49dfeb8255a574
1185e04b1eb1a721d42db51d49e49dfeb8255a5741 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674164 +0200 commit (amend): Initial commit 1185e04b1eb1a721d42db51d49e49dfeb8255a5741 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674164 +0200 commit (amend): Initial commit
12931004157205727e6a47586feaed0473c6ddbd66 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674177 +0200 checkout: moving from master to curly 12931004157205727e6a47586feaed0473c6ddbd66 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674177 +0200 checkout: moving from master to curly
13931004157205727e6a47586feaed0473c6ddbd66 3a6237c5feacca9a37c36bec5110a1eeb9da703b Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674189 +0200 commit: Add a line of code that does not have the correct curlies (eslint) 13931004157205727e6a47586feaed0473c6ddbd66 3a6237c5feacca9a37c36bec5110a1eeb9da703b Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674189 +0200 commit: Add a line of code that does not have the correct curlies (eslint)
143a6237c5feacca9a37c36bec5110a1eeb9da703b 37018e429ad00f0ec961bd218e3dfa6a6e8cc05b Markus Doits <markus.doits@stellenticket.de> 1460316876 +0200 commit: add es6 file
diff --git a/spec/fixtures/test.git/git/logs/refs/heads/curly b/spec/fixtures/test.git/git/logs/refs/heads/curly
index dfb7828..11582e5 100644
--- a/spec/fixtures/test.git/git/logs/refs/heads/curly
+++ b/spec/fixtures/test.git/git/logs/refs/heads/curly
@@ -1,2 +1,3 @@
10000000000000000000000000000000000000000 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674177 +0200 branch: Created from HEAD 10000000000000000000000000000000000000000 931004157205727e6a47586feaed0473c6ddbd66 Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674177 +0200 branch: Created from HEAD
2931004157205727e6a47586feaed0473c6ddbd66 3a6237c5feacca9a37c36bec5110a1eeb9da703b Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674189 +0200 commit: Add a line of code that does not have the correct curlies (eslint) 2931004157205727e6a47586feaed0473c6ddbd66 3a6237c5feacca9a37c36bec5110a1eeb9da703b Mindaugas Mozūras <mindaugas.mozuras@gmail.com> 1456674189 +0200 commit: Add a line of code that does not have the correct curlies (eslint)
33a6237c5feacca9a37c36bec5110a1eeb9da703b 37018e429ad00f0ec961bd218e3dfa6a6e8cc05b Markus Doits <markus.doits@stellenticket.de> 1460316876 +0200 commit: add es6 file
diff --git a/spec/fixtures/test.git/git/objects/01/d6dc2234bda69a289104ffdf9667363a2414bd b/spec/fixtures/test.git/git/objects/01/d6dc2234bda69a289104ffdf9667363a2414bd
new file mode 100644
index 0000000..b4fe9ea
--- /dev/null
+++ b/spec/fixtures/test.git/git/objects/01/d6dc2234bda69a289104ffdf9667363a2414bd
@@ -0,0 +1,2 @@
1xA
20E]dؘ b2`L[>i vpv\i= >CJǮ$4O)8$fi>$Z$.LТi+e8htn*ð:+EwYN` ] EhV_AU61CW \ No newline at end of file
diff --git a/spec/fixtures/test.git/git/objects/37/018e429ad00f0ec961bd218e3dfa6a6e8cc05b b/spec/fixtures/test.git/git/objects/37/018e429ad00f0ec961bd218e3dfa6a6e8cc05b
new file mode 100644
index 0000000..1d5c313
--- /dev/null
+++ b/spec/fixtures/test.git/git/objects/37/018e429ad00f0ec961bd218e3dfa6a6e8cc05b
@@ -0,0 +1 @@
xA aלb&  1ƅ[1 ZSo<^ylлtj=,Zlbbťi}RZ6)Ѿ-fao&#S[\Vx*ܗUGuWdvs䗴Cm ƀpֽ֊MuRq՗P \ No newline at end of file
diff --git a/spec/fixtures/test.git/git/objects/77/b5c76d003b18b78c41b86e36884ce49f40c259 b/spec/fixtures/test.git/git/objects/77/b5c76d003b18b78c41b86e36884ce49f40c259
new file mode 100644
index 0000000..db2600a
--- /dev/null
+++ b/spec/fixtures/test.git/git/objects/77/b5c76d003b18b78c41b86e36884ce49f40c259
Binary files differ
diff --git a/spec/fixtures/test.git/git/objects/cf/e8bc15022f8b4d3cea89bc20abb13f985feeb0 b/spec/fixtures/test.git/git/objects/cf/e8bc15022f8b4d3cea89bc20abb13f985feeb0
new file mode 100644
index 0000000..b0bc9b3
--- /dev/null
+++ b/spec/fixtures/test.git/git/objects/cf/e8bc15022f8b4d3cea89bc20abb13f985feeb0
Binary files differ
diff --git a/spec/fixtures/test.git/git/refs/heads/curly b/spec/fixtures/test.git/git/refs/heads/curly
index ce18055..21919cd 100644
--- a/spec/fixtures/test.git/git/refs/heads/curly
+++ b/spec/fixtures/test.git/git/refs/heads/curly
@@ -1 +1 @@
3a6237c5feacca9a37c36bec5110a1eeb9da703b 37018e429ad00f0ec961bd218e3dfa6a6e8cc05b
diff --git a/spec/fixtures/test.git/world.es6 b/spec/fixtures/test.git/world.es6
new file mode 100644
index 0000000..2d1b996
--- /dev/null
+++ b/spec/fixtures/test.git/world.es6
@@ -0,0 +1,5 @@
1function HelloWorld(name)
2{
3 if (foo) foo++;
4 alert(name);
5}
diff --git a/spec/pronto/eslint_spec.rb b/spec/pronto/eslint_spec.rb
index 29d46e4..7af0aa2 100644
--- a/spec/pronto/eslint_spec.rb
+++ b/spec/pronto/eslint_spec.rb
@@ -17,12 +17,12 @@ module Pronto
17 it { should == [] } 17 it { should == [] }
18 end 18 end
19 19
20 context 'patches with a four warnings' do 20 context 'patches with a four and a five warnings' do
21 include_context 'test repo' 21 include_context 'test repo'
22 22
23 let(:patches) { repo.diff('master') } 23 let(:patches) { repo.diff('master') }
24 24
25 its(:count) { should == 4 } 25 its(:count) { should == 9 }
26 its(:'first.msg') { should == "Expected { after 'if' condition." } 26 its(:'first.msg') { should == "Expected { after 'if' condition." }
27 end 27 end
28 end 28 end