Sha256: 1e63bfeb35f0573231ee92f67907969c8711f21a42fe1041b5837279edebc577

Contents?: true

Size: 794 Bytes

Versions: 6

Compression:

Stored size: 794 Bytes

Contents

require "test_helper"

class ResourcesTest < ActiveSupport::TestCase

  test "action_after_save" do
    assert Typus::Resources.action_after_save.eql?('edit')
  end

  test "default_action_on_item" do
    assert Typus::Resources.default_action_on_item.eql?('edit')
  end

  test "end_year" do
    assert Typus::Resources.end_year.nil?
  end

  test "form_rows" do
    assert Typus::Resources.form_rows.eql?(15)
  end

  test "minute_step" do
    assert Typus::Resources.minute_step.eql?(5)
  end

  test "only_user_items" do
    assert !Typus::Resources.only_user_items
  end

  test "per_page" do
    assert Typus::Resources.per_page.eql?(15)
  end

  test "sortable" do
    assert Typus::Resources.sortable
  end

  test "start_year" do
    assert Typus::Resources.start_year.nil?
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typus-3.1.0.rc6 test/lib/typus/resources_test.rb
typus-3.1.0.rc5 test/lib/typus/resources_test.rb
typus-3.1.0.rc4 test/lib/typus/resources_test.rb
typus-3.1.0.rc3 test/lib/typus/resources_test.rb
typus-3.1.0.rc2 test/lib/typus/resources_test.rb
typus-3.1.0.rc1 test/lib/typus/resources_test.rb