Sha256: 046dceef3a866c1867f069c01d29ce516e53d120a3039f203d2f277aa427a911

Contents?: true

Size: 609 Bytes

Versions: 20

Compression:

Stored size: 609 Bytes

Contents

require 'test_helper'

class ApotomoTest < Test::Unit::TestCase
  context "The main module" do    
    should "save the JavascriptGenerator instance when setting js_framework" do
      Apotomo.js_framework = :jquery
      assert_respond_to Apotomo.js_generator, :jquery
    end
    
    should "have an accessor for js_framework" do
      Apotomo.js_framework = :jquery
      assert_equal :jquery, Apotomo.js_framework
    end
    
    should "have a setup method" do
      Apotomo.setup { |config| config.js_framework = :prototype }
      assert_respond_to Apotomo.js_generator, :prototype
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
apotomo-1.2.3 test/apotomo_test.rb
apotomo-1.2.2 test/apotomo_test.rb
apotomo-1.2.1 test/apotomo_test.rb
apotomo-1.2.0 test/apotomo_test.rb
apotomo-1.1.4 test/unit/apotomo_test.rb
apotomo-1.1.3 test/unit/apotomo_test.rb
apotomo-1.1.2 test/unit/apotomo_test.rb
apotomo-1.1.1 test/unit/apotomo_test.rb
apotomo-1.1.0 test/unit/apotomo_test.rb
apotomo-1.1.0.rc1 test/unit/apotomo_test.rb
apotomo-1.0.5 test/unit/apotomo_test.rb
apotomo-1.0.4 test/unit/apotomo_test.rb
apotomo-1.0.3 test/unit/apotomo_test.rb
apotomo-1.0.2 test/unit/apotomo_test.rb
apotomo-1.0.1 test/unit/apotomo_test.rb
apotomo-1.0.0 test/unit/apotomo_test.rb
apotomo-1.0.0.beta2 test/unit/apotomo_test.rb
apotomo-1.0.0.beta1 test/unit/apotomo_test.rb
apotomo-0.1.4 test/unit/apotomo_test.rb
apotomo-0.1.3 test/unit/apotomo_test.rb