Sha256: 8e2038bba27b8b7335432ef8fa6b1f7868d17736aae146f5b9e23582018dceed

Contents?: true

Size: 938 Bytes

Versions: 1

Compression:

Stored size: 938 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Remarkable::Pending do

  it "should create pending groups" do
    spec = self

    self.class.pending "pending examples" do
      self.instance_variable_get("@_pending_group").should spec.be_true
      self.instance_variable_get("@_pending_group_description").should spec.eql("pending examples")
      self.instance_variable_get("@_pending_group_execute").should spec.be_true
    end

    self.instance_variable_get("@_pending_group").should be_nil
    self.instance_variable_get("@_pending_group_description").should be_nil
    self.instance_variable_get("@_pending_group_execute").should be_nil
  end

  pending "pending examples" do
#    example "should show as not implemented"
#
#    specify "should show as pending" do
#      raise "oops"
#    end
#
#    it "should show as fixed" do
#      # success ...
#    end

    should_contain(5)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
remarkable-3.0.10 spec/pending_spec.rb