Sha256: 0d612fdf575c95acbe091716e78645b4ea41516b6da7c214d3e5626754157fd7

Contents?: true

Size: 318 Bytes

Versions: 26

Compression:

Stored size: 318 Bytes

Contents

require 'react/test'

module React
  module Test
    module DSL
      def component
        React::Test.current_session
      end

      Session::DSL_METHODS.each do |method|
        define_method method do |*args, &block|
          component.public_send(method, *args, &block)
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
hyper-component-0.99.6 lib/react/test/dsl.rb
hyper-component-0.99.5 lib/react/test/dsl.rb
hyper-component-0.99.4 lib/react/test/dsl.rb
hyper-component-0.99.3 lib/react/test/dsl.rb
hyper-component-0.99.2 lib/react/test/dsl.rb
hyper-component-0.99.1 lib/react/test/dsl.rb
hyper-component-0.99.0 lib/react/test/dsl.rb
hyper-react-1.0.0.lap28 lib/react/test/dsl.rb
hyper-react-1.0.0.lap27 lib/react/test/dsl.rb
hyper-react-1.0.0.lap26 lib/react/test/dsl.rb
hyper-react-1.0.0.lap25 lib/react/test/dsl.rb
hyper-react-1.0.0.lap24 lib/react/test/dsl.rb
hyper-react-1.0.0.lap23 lib/react/test/dsl.rb
hyper-react-1.0.0.lap22 lib/react/test/dsl.rb
hyper-react-1.0.0.lap21 lib/react/test/dsl.rb
hyper-react-0.12.7 lib/react/test/dsl.rb
hyper-react-0.12.6 lib/react/test/dsl.rb
hyper-react-0.12.5 lib/react/test/dsl.rb
hyper-react-0.12.4 lib/react/test/dsl.rb
hyper-react-0.12.3 lib/react/test/dsl.rb