Sha256: 59c23a5a011d45721bf134df47db6555583b8360aaa04aca36bae90544dfd0e2
Contents?: true
Size: 1.16 KB
Versions: 163
Compression:
Stored size: 1.16 KB
Contents
# Deliberately named _specs.rb to avoid being loaded except when specified describe "pending spec with no implementation" do it "is pending" end describe "pending command with block format" do context "with content that would fail" do it "is pending" do pending do 1.should eq(2) end end end context "with content that would pass" do it "fails" do pending do 1.should eq(1) end end end end describe "passing spec" do it "passes" do 1.should eq(1) end end describe "failing spec" do it "fails" do 1.should eq(2) end end describe "a failing spec with odd backtraces" do it "fails with a backtrace that has no file" do require 'erb' ERB.new("<%= raise 'foo' %>").result end it "fails with a backtrace containing an erb file" do e = Exception.new def e.backtrace ["/foo.html.erb:1:in `<main>': foo (RuntimeError)", " from /lib/ruby/1.9.1/erb.rb:753:in `eval'"] end def e.message # Redefining message steps around this behaviour # on JRuby: http://jira.codehaus.org/browse/JRUBY-5637 self.class.name end raise e end end
Version data entries
163 entries across 108 versions & 15 rubygems