Sha256: 0f55833efdfec622e5e0ce79697fb29c3f4284523bb6dc852362aa76924f1591

Contents?: true

Size: 461 Bytes

Versions: 13

Compression:

Stored size: 461 Bytes

Contents

require "teaspoon/registry"

module Teaspoon
  module Framework
    extend Teaspoon::Registry

    not_found_in_registry Teaspoon::UnknownFramework

    def self.default
      # Frameworks are special in that the default is the first framework
      # that was registered, but can be nil, meaning the teaspoon gem is
      # in the Gemfile, instead of the framework-specific equivalent
      #   eg teaspoon-jasmine
      available.keys.first
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
teaspoon-1.4.0 lib/teaspoon/framework.rb
teaspoon-1.2.2 lib/teaspoon/framework.rb
teaspoon-1.2.1 lib/teaspoon/framework.rb
teaspoon-1.2.0 lib/teaspoon/framework.rb
teaspoon-1.1.5 lib/teaspoon/framework.rb
teaspoon-1.1.4 lib/teaspoon/framework.rb
teaspoon-1.1.3 lib/teaspoon/framework.rb
teaspoon-1.1.2 lib/teaspoon/framework.rb
teaspoon-1.1.1 lib/teaspoon/framework.rb
teaspoon-1.1.0 lib/teaspoon/framework.rb
teaspoon-1.0.2 lib/teaspoon/framework.rb
teaspoon-1.0.1 lib/teaspoon/framework.rb
teaspoon-1.0.0 lib/teaspoon/framework.rb