Sha256: e8082005da6ee42a7390e834333a42f7de67d70f6507a3c7abc485e51510dbcc
Contents?: true
Size: 1017 Bytes
Versions: 19
Compression:
Stored size: 1017 Bytes
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 raise e end end
Version data entries
19 entries across 19 versions & 3 rubygems