Sha256: 0b7316d3403238f6fc4c3c0158f61a6cfb5c84a1b112c237519c9850568dc061
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
begin require 'byebug' rescue LoadError end require 'minitest/autorun' require 'test_xml/mini_test' ENV['RAILS_ENV'] = 'test' require "dummy/config/environment" require "rails/test_help" # adds stuff like @routes, etc. require 'cells' MiniTest::Spec.class_eval do include Cell::TestCase::Helpers end class BassistCell < Cell::ViewModel end class MusicianController < ActionController::Base def view_with_concept_with_show render :inline => %{<%= concept("view_extensions_test/cell", "Up For Breakfast", volume: 1).show %>} # TODO: concept doesn't need .call end def view_with_concept_without_call render :inline => %{<%= concept("view_extensions_test/cell", "A Tale That Wasn't Right") %>} # this tests ViewModel#to_s. end def view_with_concept_with_call render :inline => %{<%= concept("view_extensions_test/cell", "A Tale That Wasn't Right").call %>} end def view_with_cell_with_call render :inline => %{<%= cell("view_extensions_test/song", "A Tale That Wasn't Right").call %>} end def action_with_concept_with_call render text: concept("view_extensions_test/cell", "A Tale That Wasn't Right").call end def action_with_cell_with_call render text: cell("view_extensions_test/song", "A Tale That Wasn't Right").call end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cells-jamie-4.0.0.alpha1 | test/test_helper.rb |