File: rspec_fail_examples.rb

package info (click to toggle)
ruby-em-spec 0.2.6-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 156 kB
  • ctags: 96
  • sloc: ruby: 500; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require File.dirname(__FILE__) + '/../lib/em-spec/rspec'

describe EventMachine, "when running failing examples" do
  include EM::Spec
  
  it "should not bubble failures beyond rspec" do
    EM.add_timer(0.1) do
      :should_not_bubble.should == :failures
      done
    end
  end

  it "should not block on failure" do
     1.should == 2
  end

  
end