Is there a way to unit test a regular view ?

This page summarizes the projects mentioned and recommended in the original post on /r/rails

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • view_component

    A framework for building reusable, testable & encapsulated view components in Ruby on Rails.

  • Unit testing was one of the driving forces behind the creation of view_components as mentioned on the homepage.

  • rails-dom-testing

    Extracting DomAssertions and SelectorAssertions from ActionView.

  • # @selected is part of SelectorAssertions # https://github.com/rails/rails-dom-testing/blob/8f5acdfcb83a888c06592bad05475b7463998d1b/test/selector_assertions_test.rb#L332 @selected = Nokogiri::HTML.parse(html) # And then write the view tests assert_select "div" # etc.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Supercharged table component built with ViewComponent

    1 project | dev.to | 2 Aug 2023
  • More expressive APIs for View Components

    1 project | dev.to | 25 Jul 2023
  • How can I integrate VueJS into a rails 7 application? What is the workflow?

    1 project | /r/rubyonrails | 27 Apr 2023
  • Helpers vs Components

    1 project | /r/rails | 17 Apr 2023
  • A Guide to Rails View Helpers

    1 project | /r/ruby | 3 Feb 2023