Sha256: 06cd9755e4b570117ce63b00fc9dce18c408d3e95df1502302a43f7a31f1d5b8

Contents?: true

Size: 370 Bytes

Versions: 10

Compression:

Stored size: 370 Bytes

Contents

module Support
  module Assertions
    def assert_same_content(result, expected)
      assert expected.size == result.size, "the arrays doesn't have the same size"
      expected.each do |element|
        assert result.include?(element), "The array doesn't include '#{element}'."
      end
    end

    def assert_not(assertion)
      assert !assertion
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
devise-encryptable-0.2.0 test/support/assertions.rb
devise-encryptable-0.1.2 test/support/assertions.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/devise-encryptable-0.1.1/test/support/assertions.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/devise-encryptable-0.1.1/test/support/assertions.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/devise-encryptable-0.1.1/test/support/assertions.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/devise-encryptable-0.1.1/test/support/assertions.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/devise-encryptable-0.1.1/test/support/assertions.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/devise-encryptable-0.1.1/test/support/assertions.rb
devise-encryptable-0.1.1 test/support/assertions.rb
devise-encryptable-0.1.0 test/support/assertions.rb