test/test_helper.rb in cells-4.0.5 vs test/test_helper.rb in cells-4.1.0.rc1
- old
+ new
@@ -1,15 +1,7 @@
-ENV['RAILS_ENV'] = 'test'
-require_relative 'dummy/config/environment'
-
-require 'minitest/autorun'
-
-require 'minitest/reporters'
-Minitest::Reporters.use! [Minitest::Reporters::ProgressReporter.new]
-require "rails/test_help" # adds stuff like @routes, etc.
-
-require 'cells'
+require "minitest/autorun"
+require "cells"
require "cells-erb"
Cell::ViewModel.send(:include, Cell::Erb) if Cell.const_defined?(:Erb) # FIXME: should happen in inititalizer.
MiniTest::Spec.class_eval do
@@ -17,33 +9,5 @@
end
class BassistCell < Cell::ViewModel
self.view_paths = ['test/fixtures']
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
-
-Rails.backtrace_cleaner.remove_silencers! # YES, stacktraces are awesome!
\ No newline at end of file