Sha256: 5e85aff8e4c37473fc23607dcffc923485ae266b1ffd13eee57b6baff8bef8e2

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

#enconding: utf-8
require 'spec_helper'
require 'strategies_helper'

describe SearchingStrategies::Base do

  it "raise an exception if api is not implemented" do
    class TestStrategy < SearchingStrategies::Base
    end

    expect {
      test_strategy = TestStrategy.new
      test_strategy.success?
    }.to raise_error Exceptions::IncompatibleComparator
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
the_array_comparator-0.5.0 spec/comparator/base_spec.rb
the_array_comparator-0.4.0 spec/comparator/base_spec.rb
the_array_comparator-0.3.4 spec/comparator/base_spec.rb
the_array_comparator-0.3.1 spec/comparator/base_spec.rb
the_array_comparator-0.3.0 spec/comparator/base_spec.rb