purobu 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -26,7 +26,7 @@ within your tests.
26
26
  For example:
27
27
 
28
28
  ```ruby
29
- # test_can_create_crane_database.rb
29
+ # tests/test_can_create_crane_database.rb
30
30
  test 'can create crane database' do
31
31
  setup do
32
32
  heroku "apps:create --name some-app"
@@ -51,10 +51,10 @@ Then run it with 4 concurrent jobs:
51
51
 
52
52
  $ purobu -j 4
53
53
 
54
- Purobu will load any files that match `/test_.*\.rb/` recursively. An
54
+ Purobu will load any files that match `/tests/test_.*\.rb/` recursively. An
55
55
  alternative is to specify files to run:
56
56
 
57
- $ purobu -j 4 -f test_one.rb,test_two.rb
57
+ $ purobu -j 4 -f tests/test_one.rb,tests/test_two.rb
58
58
 
59
59
  For more command line switches, try `purobu -h`
60
60
 
@@ -4,7 +4,7 @@ module Purobu
4
4
 
5
5
  def initialize(opts = {})
6
6
  @runner = Runner.new
7
- @files = opts[:files] || Dir['**/test_*.rb']
7
+ @files = opts[:files] || Dir['tests/**/test*.rb']
8
8
  end
9
9
 
10
10
  def test(name = nil, &block)
@@ -1,3 +1,3 @@
1
1
  module Purobu
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -27,9 +27,10 @@ describe Purobu::DSL, 'loading tests files' do
27
27
  before { FakeFS.activate! }
28
28
  after { FakeFS.deactivate! }
29
29
 
30
- it 'loads tests' do
30
+ it 'loads tests, except files in vendor dir' do
31
+ Dir.mkdir "tests"
31
32
  2.times do |i|
32
- File.open("test_#{i}.rb", 'w') do |file|
33
+ File.open("tests/test_#{i}.rb", 'w') do |file|
33
34
  file << "test { verify { true } }"
34
35
  end
35
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purobu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: heroku
16
- requirement: &70336029135080 !ruby/object:Gem::Requirement
16
+ requirement: &70206819644680 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.28.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70336029135080
24
+ version_requirements: *70206819644680
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: heroku-api
27
- requirement: &70336029134040 !ruby/object:Gem::Requirement
27
+ requirement: &70206819643240 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70336029134040
35
+ version_requirements: *70206819643240
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: scrolls
38
- requirement: &70336029021320 !ruby/object:Gem::Requirement
38
+ requirement: &70206819641660 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - =
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.2.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70336029021320
46
+ version_requirements: *70206819641660
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sequel
49
- requirement: &70336029004160 !ruby/object:Gem::Requirement
49
+ requirement: &70206819639980 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70336029004160
57
+ version_requirements: *70206819639980
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &70336028995820 !ruby/object:Gem::Requirement
60
+ requirement: &70206819639320 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70336028995820
68
+ version_requirements: *70206819639320
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: fakefs
71
- requirement: &70336028987520 !ruby/object:Gem::Requirement
71
+ requirement: &70206819638540 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70336028987520
79
+ version_requirements: *70206819638540
80
80
  description: ! ' Black-box integration test framework for components on the Heroku
81
81
  platform. '
82
82
  email: