Sha256: af5169f6a81ed89b498b62c18de0fb102fe0895b65999f3abd304dad346753a4

Contents?: true

Size: 591 Bytes

Versions: 7

Compression:

Stored size: 591 Bytes

Contents

require "test_helper"

class ResourceTest < ActiveSupport::TestCase

  should "verify default resource configuration options" do
    assert_equal "edit", Typus::Resources.default_action_on_item
    assert Typus::Resources.end_year.nil?
    assert_equal 15, Typus::Resources.form_rows
    assert_equal "edit", Typus::Resources.action_after_save
    assert_equal 5, Typus::Resources.minute_step
    assert_equal "nil", Typus::Resources.human_nil
    assert !Typus::Resources.only_user_items
    assert_equal 15, Typus::Resources.per_page
    assert Typus::Resources.start_year.nil?
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typus-1.0.0.pre7 test/lib/typus/resource_test.rb
typus-1.0.0.pre6 test/lib/typus/resource_test.rb
typus-1.0.0.pre5 test/lib/typus/resource_test.rb
typus-1.0.0.pre4 test/lib/typus/resource_test.rb
typus-1.0.0.pre3 test/lib/typus/resource_test.rb
typus-1.0.0.pre2 test/lib/typus/resource_test.rb
typus-1.0.0.pre test/lib/typus/resource_test.rb