Sha256: 69ed2053e4787eaaf7a8fc930a1e74d94a72dbdb3df4a5cc34dab97066cb5991

Contents?: true

Size: 612 Bytes

Versions: 11

Compression:

Stored size: 612 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){ self << 4 }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
remarkable-3.1.7 spec/macros_spec.rb
remarkable-3.1.8 spec/macros_spec.rb
remarkable-3.0.10 spec/macros_spec.rb
remarkable-3.0.9 spec/macros_spec.rb
remarkable-3.1.5 spec/macros_spec.rb
remarkable-3.1.6 spec/macros_spec.rb
remarkable-3.1.4 spec/macros_spec.rb
remarkable-3.1.3 spec/macros_spec.rb
remarkable-3.1.0 spec/macros_spec.rb
remarkable-3.1.1 spec/macros_spec.rb
remarkable-3.1.2 spec/macros_spec.rb