schmurfy-bacon 1.2

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.
@@ -0,0 +1,14 @@
1
+ $false_is_not_true = false.should.not.be.true
2
+ $nil_is_not_true = nil.should.not.be.true
3
+
4
+ describe 'A non-true value' do
5
+ it 'should pass negated tests inside specs' do
6
+ false.should.not.be.true
7
+ nil.should.not.be.true
8
+ end
9
+
10
+ it 'should pass negated tests outside specs' do
11
+ $false_is_not_true.should.be.true
12
+ $nil_is_not_true.should.be.true
13
+ end
14
+ end
@@ -0,0 +1,32 @@
1
+ require File.expand_path('../../lib/bacon', __FILE__)
2
+
3
+ describe "#should shortcut for #it('should')" do
4
+
5
+ should "be called" do
6
+ @called = true
7
+ @called.should.be == true
8
+ end
9
+
10
+ should "save some characters by typing should" do
11
+ lambda { should.satisfy { 1 == 1 } }.should.not.raise
12
+ end
13
+
14
+ should "save characters even on failure" do
15
+ lambda { should.satisfy { 1 == 2 } }.should.raise Bacon::Error
16
+ end
17
+
18
+ should "work nested" do
19
+ should.satisfy {1==1}
20
+ end
21
+
22
+ count = Bacon::Counter[:specifications]
23
+ should "add new specifications" do
24
+ # XXX this should +=1 but it's +=2
25
+ (count+1).should == Bacon::Counter[:specifications]
26
+ end
27
+
28
+ should "have been called" do
29
+ @called.should.be == true
30
+ end
31
+
32
+ end
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: schmurfy-bacon
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.2'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Christian Neukirchen
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-10-08 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: term-ansicolor
16
+ requirement: &70366695662620 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70366695662620
25
+ description: ! 'Bacon is a small RSpec clone weighing less than 350 LoC but
26
+
27
+ nevertheless providing all essential features.
28
+
29
+
30
+ http://github.com/chneukirchen/bacon
31
+
32
+ '
33
+ email: chneukirchen@gmail.com
34
+ executables:
35
+ - bacon
36
+ extensions: []
37
+ extra_rdoc_files:
38
+ - README
39
+ files:
40
+ - .gitignore
41
+ - COPYING
42
+ - README
43
+ - Rakefile
44
+ - bacon.gemspec
45
+ - bin/bacon
46
+ - lib/autotest/bacon.rb
47
+ - lib/autotest/bacon_rspec.rb
48
+ - lib/autotest/discover.rb
49
+ - lib/bacon.rb
50
+ - lib/bacon/version.rb
51
+ - lib/output/better_output.rb
52
+ - lib/output/knock_output.rb
53
+ - lib/output/spec_dox_output.rb
54
+ - lib/output/tap_output.rb
55
+ - lib/output/test_unit_output.rb
56
+ - test/spec_bacon.rb
57
+ - test/spec_nontrue.rb
58
+ - test/spec_should.rb
59
+ homepage: http://github.com/chneukirchen/bacon
60
+ licenses: []
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 1.8.11
80
+ signing_key:
81
+ specification_version: 3
82
+ summary: a small RSpec clone
83
+ test_files: []