Sha256: 2c5f26c8f772bbf7c82ea967cdb3af9d94d686fcc9d41de2a0789d03e84b469b

Contents?: true

Size: 355 Bytes

Versions: 12

Compression:

Stored size: 355 Bytes

Contents

require_relative "spec_helper"

describe "all assertions" do
  all_classes = ObjectSpace.each_object(Class).select { |klass| klass < YSI::Assertion }

  all_classes.each do |assertion_class|
    describe assertion_class do
      it_behaves_like "an assertion" do
        let(:assertion) {assertion_class.new(YSI::Engine.new) }
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
yes_ship_it-0.2.2 spec/unit/assertions_spec.rb
yes_ship_it-0.2.1 spec/unit/assertions_spec.rb
yes_ship_it-0.2.0 spec/unit/assertions_spec.rb
yes_ship_it-0.1.2 spec/unit/assertions_spec.rb
yes_ship_it-0.1.1 spec/unit/assertions_spec.rb
yes_ship_it-0.1.0 spec/unit/assertions_spec.rb
yes_ship_it-0.0.6 spec/unit/assertions_spec.rb
yes_ship_it-0.0.5 spec/unit/assertions_spec.rb
yes_ship_it-0.0.4 spec/unit/assertions_spec.rb
yes_ship_it-0.0.3 spec/unit/assertions_spec.rb
yes_ship_it-0.0.2 spec/unit/assertions_spec.rb
yes_ship_it-0.0.1 spec/unit/assertions_spec.rb