diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2012-03-16 19:03:58 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2012-03-16 19:15:11 +0100 |
commit | 2d0ff135846363e2baf00d43049b4e9fc4e70c47 (patch) | |
tree | 4ed39238ea7559a69818a414bc0af8203907e672 /test | |
parent | 6d7a1a2c5566b292206fcf49bb0301f7d15bd48e (diff) | |
download | bacon-2d0ff135846363e2baf00d43049b4e9fc4e70c47.tar.gz bacon-2d0ff135846363e2baf00d43049b4e9fc4e70c47.tar.xz bacon-2d0ff135846363e2baf00d43049b4e9fc4e70c47.zip |
Whitespace cleanup
Diffstat (limited to 'test')
-rw-r--r-- | test/spec_bacon.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/spec_bacon.rb b/test/spec_bacon.rb index 1d2a7d3..57e3842 100644 --- a/test/spec_bacon.rb +++ b/test/spec_bacon.rb @@ -27,7 +27,7 @@ end describe "Bacon" do extend MetaTests - + it "should have should.satisfy" do lambda { should.satisfy { 1 == 1 } }.should succeed lambda { should.satisfy { 1 } }.should succeed @@ -96,7 +96,7 @@ describe "Bacon" do ex.should.be.kind_of RuntimeError ex.message.should =~ /foo/ end - + it "should have should.be.an.instance_of" do lambda { "string".should.be.instance_of String }.should succeed lambda { "string".should.be.instance_of Hash }.should fail @@ -149,7 +149,7 @@ describe "Bacon" do }.should.not.raise(RuntimeError, Comparable) }.should.raise ZeroDivisionError }.should succeed - + lambda { lambda { raise "Error" }.should.not.raise }.should fail end @@ -193,7 +193,7 @@ describe "Bacon" do lambda { 5.should.respond_to :to_str }.should fail lambda { :foo.should.respond_to :nx }.should fail end - + it "should have should.be.close" do lambda { 1.4.should.be.close 1.4, 0 }.should succeed lambda { 0.4.should.be.close 0.5, 0.1 }.should succeed @@ -290,40 +290,40 @@ describe "before/after" do after do @a.should.equal 3 end - + it "should run in the right order" do @a.should.equal 2 @b.should.equal 2 end - + describe "when nested" do before do @c = 5 end - + it "should run from higher level" do @a.should.equal 2 @b.should.equal 2 end - + it "should run at the nested level" do @c.should.equal 5 end - + before do @a = 5 end - + it "should run in the right order" do @a.should.equal 5 @a = 2 end end - + it "should not run from lower level" do @c.should.be.nil end - + describe "when nested at a sibling level" do it "should not run from sibling level" do @c.should.be.nil @@ -391,7 +391,7 @@ describe 'describe arguments' do it 'should work with symbols' do check(describe(:behaviour) {},'behaviour') end - + it 'should work with modules' do check(describe(Bacon) {},'Bacon') end |