Sha256: e3bfb8cd06db2ff0fc758b19f94057420513f0b4c742a1fc1ed12b19d289b2b5

Contents?: true

Size: 621 Bytes

Versions: 7

Compression:

Stored size: 621 Bytes

Contents

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

describe Remarkable::Macros do
  subject { [1, 2, 3] }

  should_contain(1)
  should_contain(1, 2)
  should_contain(1, 2, 3)

  should_not_contain(4)
  should_not_contain(1, 4)

  describe "with disabled examples" do
    # Example disabled without parameters to ensure rescue works properly
    xshould_not_single_contain
    xshould_contain(5)
    xshould_not_contain(1)
  end

  describe "with blocks" do
    subject { [1, 2, 3] }

    should_not_single_contain(4)
    should_single_contain(4){ |array| array << 4 }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
remarkable-3.0.2 spec/macros_spec.rb
remarkable-3.0.3 spec/macros_spec.rb
remarkable-3.0.4 spec/macros_spec.rb
remarkable-3.0.7 spec/macros_spec.rb
remarkable-3.0.5 spec/macros_spec.rb
remarkable-3.0.8 spec/macros_spec.rb
remarkable-3.0.6 spec/macros_spec.rb