Sha256: 326876cdb6a08f4ced64e07b3edc4f3387ac0f2f5f1eb4a027e70ca628a8b5cc

Contents?: true

Size: 370 Bytes

Versions: 8

Compression:

Stored size: 370 Bytes

Contents

require 'teststrap'

context "An includes assertion macro" do
  setup do
    Riot::Assertion.new("an array") { [1, 6, 42, 7] }
  end

  assertion_test_passes("when array includes 42") { topic.includes(42) }

  assertion_test_fails("when 99 not included in array", "expected [1, 6, 42, 7] to include 99") do
    topic.includes(99)
  end
end # An includes assertion macro

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
riot-0.10.9 test/assertion_macros/includes_test.rb
riot-0.10.8 test/assertion_macros/includes_test.rb
riot-0.10.7 test/assertion_macros/includes_test.rb
riot-0.10.6 test/assertion_macros/includes_test.rb
riot-0.10.5 test/assertion_macros/includes_test.rb
riot-0.10.4 test/assertion_macros/includes_test.rb
riot-0.10.3 test/assertion_macros/includes_test.rb
riot-0.10.2 test/assertion_macros/includes_test.rb