Sha256: cb99195ca121ddaca9a37ed85a4cb147639337b91def49bb28bebf375c67644a

Contents?: true

Size: 474 Bytes

Versions: 7

Compression:

Stored size: 474 Bytes

Contents

RSpec.configure do |config|
  config.before(:all) do
    on_client do
      class TestComponent < React::Component::Base
        param scope: :all
        render(:div) do
          div { "#{TestModel.send(params.scope).count} items" }
          ul { TestModel.send(params.scope).each { |model| li { model.test_attribute }}}
        end
      end
      class TestComponent2 < React::Component::Base
        render do
          "hello"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyper-mesh-0.6.0 spec/test_components.rb
hyper-mesh-0.5.4 spec/test_components.rb
hyper-mesh-0.5.3 spec/synchromesh/integration/test_components.rb
hyper-mesh-0.5.2 spec/synchromesh/integration/test_components.rb
hyper-mesh-0.5.1 spec/synchromesh/integration/test_components.rb
hyper-mesh-0.5.0 spec/synchromesh/integration/test_components.rb
hyper-mesh-0.4.0 spec/synchromesh/integration/test_components.rb