Sha256: 9e55d66f55dbd26dddf7f56ca606dd48d3fce2738912a65a841cf458e0559f57

Contents?: true

Size: 544 Bytes

Versions: 14

Compression:

Stored size: 544 Bytes

Contents

module MiniTestSpecRails
  module Init
    module MiniShouldaBehavior
      extend ActiveSupport::Concern

      included do
        class << self
          alias_method :context, :describe
          alias_method :should, :it
        end
        extend ClassMethods
      end

      module ClassMethods
        def should_eventually(desc)
          it("should eventually #{desc}") { skip("Should eventually #{desc}") }
        end
      end
    end
  end
end

ActiveSupport::TestCase.send :include, MiniTestSpecRails::Init::MiniShouldaBehavior

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
minitest-spec-rails-7.4.1 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-7.4.0 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-7.3.0 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-7.2.0 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-7.1.0 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-7.0.0 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-6.2.0 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-6.1.0 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-6.0.4 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-6.0.3 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-6.0.2 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-6.0.1 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-6.0.0 lib/minitest-spec-rails/init/mini_shoulda.rb
minitest-spec-rails-5.5.0 lib/minitest-spec-rails/init/mini_shoulda.rb