Sha256: 20d119c9af709cca82e08a3cd336832b5cc76277b1ba1fef671ad4824b6a82ab
Contents?: true
Size: 1.15 KB
Versions: 5
Compression:
Stored size: 1.15 KB
Contents
require "test_helper" class RailtieTest < PARENT_TEST_CASE context "A Rails application with shoulda-context added to it" do setup do app.create end should "load files in vendor/gems and vendor/plugins when booted" do app.create_gem_with_macro( module_name: "MacrosFromVendor", location: "vendor/gems/vendored_gem_with_macro", macro_name: "macro_from_vendored_gem" ) app.create_gem_with_macro( module_name: "MacrosFromPlugin", location: "vendor/plugins/plugin_gem_with_macro", macro_name: "macro_from_plugin_gem" ) app.create_gem_with_macro( module_name: "MacrosFromTest", location: "test", macro_name: "macro_from_test" ) app.write_file("test/macros_test.rb", <<~RUBY) ENV["RAILS_ENV"] = "test" require_relative "../config/environment" class MacrosTest < #{PARENT_TEST_CASE} macro_from_vendored_gem macro_from_plugin_gem macro_from_test end RUBY app.run_n_unit_test_suite end end def app @_app ||= RailsApplicationWithShouldaContext.new end end
Version data entries
5 entries across 5 versions & 1 rubygems