Sha256: 8af23be42c480d46ef68b571f3148381b45951cc1ffdebf707e866f92c6ad586

Contents?: true

Size: 718 Bytes

Versions: 13

Compression:

Stored size: 718 Bytes

Contents

describe "All these tests will fail" do
  it "some simple expectations" do
    1.should == 2
  end

  it "some array comparisons" do
    [1, 2, 3].should == nil
  end

  it "be_kind_of expectations" do
    1.should be_kind_of String
  end

  it "be_nil expectation" do
    [].should be_nil
  end

  it "be_true expectation" do
    false.should be_true
  end

  it "be_false expectation" do
    true.should be_false
  end

  it "equal expectation" do
    Object.new.should equal(Object.new)
  end

  it "raise_error expectation" do
    lambda {
      "dont raise"
    }.should raise_error(Exception)
  end

  it "can use backtraces when available" do
    something.should.fail.as.all.these.methods.dont.exist
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
opal-spec-0.1.15 example/foo.rb
opal-spec-0.1.14 example/foo.rb
opal-spec-0.1.13 example/foo.rb
opal-spec-0.1.12 example/foo.rb
opal-spec-0.1.11 example/foo.rb
opal-spec-0.1.10 example/foo.rb
opal-spec-0.1.9 example/foo.rb
opal-spec-0.1.8 example/foo.rb
opal-spec-0.1.7 example/foo.rb
opal-spec-0.1.6 example/foo.rb
opal-spec-0.1.5 example/foo.rb
opal-spec-0.1.1 example/foo.rb
opal-spec-0.0.3 example/foo.rb