Skip to content

Commit

Permalink
Merge pull request #158 from gregoriokusowski/removing-require-test_case
Browse files Browse the repository at this point in the history
Removing the test_case require based on Rails.env == "test"
  • Loading branch information
apotonick committed Oct 2, 2015
2 parents dc731ef + 0ce2b98 commit b90bde1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/apotomo.rb
@@ -1,12 +1,14 @@
module Apotomo
autoload :TestCase, 'apotomo/test_case'

class << self
def js_framework=(js_framework)
@js_framework = js_framework
@js_generator = JavascriptGenerator.new(js_framework)
end

attr_reader :js_generator, :js_framework

# Apotomo setup/configuration helper for initializer.
#
# == Usage/Examples:
Expand All @@ -25,6 +27,5 @@ def setup
require 'apotomo/widget_shortcuts'
require 'apotomo/rails/controller_methods'
require 'apotomo/javascript_generator'
require 'apotomo/test_case' if Rails.env == "test"

Apotomo.js_framework = :jquery ### DISCUSS: move to rails.rb

0 comments on commit b90bde1

Please sign in to comment.