require "test_helper"

class RemotelyExceptionalTest < RemotelyExceptional::TestCase
  Subject = RemotelyExceptional

  [
    Subject,
  ].each do |mod|
    context mod.name do
      subject { mod }

      should "be defined" do
        assert_kind_of Module, subject
      end

      should "have a version" do
        assert_match(/\d+\.\d+\.\d+/, Subject::VERSION)
      end
    end
  end
end

require "test_helper"

class RemotelyExceptionalTest < RemotelyExceptional::TestCase
  Subject = RemotelyExceptional

  [
    Subject,
  ].each do |mod|
    context mod.name do
      subject { mod }

      should "be defined" do
        assert_kind_of Module, subject
      end
    end
  end

  context Subject.name do
    subject { Subject }
    should "have a version" do
      assert_match(/\d+\.\d+\.\d+/, Subject::VERSION)
    end
  end
end

Move version test to different context
Move version test to different context
