Sha256: 22fd80185d518f546338545bed48b4e4b9234fa76464b2dc18905c0030b219c2

Contents?: true

Size: 878 Bytes

Versions: 10

Compression:

Stored size: 878 Bytes

Contents

require "test_helper"

class ResourcesTest < ActiveSupport::TestCase

  should "return action_after_save" do
    assert_equal "edit", Typus::Resources.action_after_save
  end

  should "return default_action_on_item" do
    assert_equal "edit", Typus::Resources.default_action_on_item
  end

  should "return end_year" do
    assert_nil Typus::Resources.end_year
  end

  should "return form_rows" do
    assert_equal 15, Typus::Resources.form_rows
  end

  should "return minute_step" do
    assert_equal 5, Typus::Resources.minute_step
  end

  should "return only_user_items" do
    assert !Typus::Resources.only_user_items
  end

  should "return per_page" do
    assert_equal 15, Typus::Resources.per_page
  end

  should "return sortable" do
    assert Typus::Resources.sortable
  end

  should "return start_year" do
    assert_nil Typus::Resources.start_year
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
typus-3.0.11 test/lib/typus/resources_test.rb
typus-3.0.11.rc5 test/lib/typus/resources_test.rb
typus-3.0.11.rc4 test/lib/typus/resources_test.rb
typus-3.0.11.rc3 test/lib/typus/resources_test.rb
typus-3.0.11.rc2 test/lib/typus/resources_test.rb
typus-3.0.11.rc1 test/lib/typus/resources_test.rb
typus-3.0.10 test/lib/typus/resources_test.rb
typus-3.0.9 test/lib/typus/resources_test.rb
typus-3.0.8 test/lib/typus/resources_test.rb
typus-3.0.7 test/lib/typus/resources_test.rb