fudge 0.3.0 → 0.3.1

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.
@@ -9,7 +9,7 @@ module Fudge
9
9
  # Preconditions to check for coverage, that if not met make the test pass
10
10
  # for example, if no tests exist, no need to fail
11
11
  def pre_conditions_regex
12
- /(0 examples, 0 failures)/ # no tests exist
12
+ /^(0 examples, 0 failures)/ # no tests exist
13
13
  end
14
14
 
15
15
  # Expression to check for coverage
data/lib/fudge/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Fudge
2
2
  # Define gem version
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
@@ -33,6 +33,8 @@ describe Fudge::Tasks::Rspec do
33
33
  it { should_not succeed_with_output '0.00%) covered' }
34
34
  it { should succeed_with_output '99.99999%) covered' }
35
35
  it { should succeed_with_output '100.0%) covered' }
36
- it { should succeed_with_output '0 examples, 0 failures'}
36
+ it { should succeed_with_output "\n0 examples, 0 failures"}
37
+ it { should succeed_with_output "Finished in 0.1 seconds\n70 examples, 0 failures\n700 / 700 LOC (100.0%) covered."}
38
+ it { should_not succeed_with_output "Finished in 0.6 seconds\n70 examples, 0 failures\n384 / 700 LOC (54.86%) covered."}
37
39
  end
38
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fudge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-04 00:00:00.000000000 Z
12
+ date: 2013-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -393,7 +393,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
393
393
  version: '0'
394
394
  segments:
395
395
  - 0
396
- hash: 2966992207496478267
396
+ hash: -1726178758741359542
397
397
  required_rubygems_version: !ruby/object:Gem::Requirement
398
398
  none: false
399
399
  requirements:
@@ -402,7 +402,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
402
402
  version: '0'
403
403
  segments:
404
404
  - 0
405
- hash: 2966992207496478267
405
+ hash: -1726178758741359542
406
406
  requirements: []
407
407
  rubyforge_project: fudge
408
408
  rubygems_version: 1.8.23