tutter 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/.gemspec +1 -1
  3. data/spec/tutter_spec.rb +11 -11
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 088744f1c591bb26d27a3185ff95e5005c79c6b9
4
- data.tar.gz: fa5ceaf606dda9364f705f6559a0b4d7d54ef416
3
+ metadata.gz: 0c3af3d72e80522559479e901e554d54727db4c8
4
+ data.tar.gz: f5baa5e1aa489753ce10d8d8b92df38d0fa166ae
5
5
  SHA512:
6
- metadata.gz: 75e9f1d02da92ca932ccab2a97698aa6f77fada6aff141154afe8ad7872fbccd43e35fb21cfb6aeb9778fd3f439f4304202bf14d2bf7d6b47dfdf5768a58b6ff
7
- data.tar.gz: 43064843cd32e3542d7ce6d48d842e57d474aa80cc78b5f676b0a4f7781cc48d903fe95c2fc19932e51be8f5a94c8e4846cf01cf7cabf66b2dd24c7746627ca8
6
+ metadata.gz: 10fba3cc04492dc352810fa7ac9166b7fd848ff3db51e84f1847cd48fb696450594a643eb5614167d82c496e8ffe5898fb2439e72acf759a0d266d91503a15bd
7
+ data.tar.gz: 0c4b1682972c71c0094e31197458d059ab30d95f3ebefe6bae62f9331f27021d4baa86cde7925f82856acd94e634e34369fa485a701a865c6c636558b2b8f500
data/.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'tutter'
4
- s.version = '0.0.2'
4
+ s.version = '0.0.3'
5
5
  s.author = 'Johan Haals'
6
6
  s.email = ['johan.haals@gmail.com']
7
7
  s.homepage = 'https://github.com/jhaals/tutter'
@@ -3,30 +3,30 @@ require 'json'
3
3
 
4
4
  describe 'tutter' do
5
5
 
6
- it 'should complain about missing project in settings' do
6
+ it 'expect complain about missing project in settings' do
7
7
  post '/', params=JSON.generate({'repository' => {'full_name' => '404'}}), {'HTTP_X_GITHUB_EVENT' => 'fake'}
8
- last_response.body.should match /Project does not exist in tutter.conf/
9
- last_response.status.should == 404
8
+ expect { last_response.body match /Project does not exist in tutter.conf/ }
9
+ expect { last_response.status == 404 }
10
10
  end
11
11
 
12
- it 'should complain about POST data not being JSON' do
12
+ it 'expect complain about POST data not being JSON' do
13
13
  post '/', params={'broken' => 'data'}, {'HTTP_X_GITHUB_EVENT' => 'fake'}
14
- last_response.body.should match /POST data is not JSON/
15
- last_response.status.should == 400
14
+ expect { last_response.body match /POST data is not JSON/ }
15
+ expect { last_response.status == 400 }
16
16
  end
17
17
 
18
- it 'should return documentation URL' do
18
+ it 'expect return documentation URL' do
19
19
  get '/'
20
- last_response.body.should match /Source code and documentation/
20
+ expect { last_response.body match /Source code and documentation/ }
21
21
  end
22
22
 
23
23
  end
24
24
 
25
25
  describe 'tutter Hello action' do
26
- it 'should complain about invalid credentials' do
26
+ it 'expect complain about invalid credentials' do
27
27
  data = IO.read('spec/fixtures/new_issue.json')
28
28
  post '/', params=data, {'HTTP_X_GITHUB_EVENT' => 'fake'}
29
- last_response.body.should match /Authorization to JHaals\/testing failed, please verify your access token/
30
- last_response.status.should == 401
29
+ expect { last_response.body match /Authorization to JHaals\/testing failed, please verify your access token/ }
30
+ expect { last_response.status == 401 }
31
31
  end
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Haals
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-22 00:00:00.000000000 Z
11
+ date: 2015-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra