Sha256: e501a953a4d4ea5c0db7ddc77136a6e9e54b4132b9ba08e00d7ab901dccfb069

Contents?: true

Size: 489 Bytes

Versions: 4

Compression:

Stored size: 489 Bytes

Contents

require 'test_helper'
include TestHelpers

class DeviseOamTest < ActiveSupport::TestCase
  test "truth" do
    assert_kind_of Module, DeviseOam
  end

  test "setup block yields self" do
    DeviseOam.setup do |config|
      assert_equal DeviseOam, config
    end
  end

  test "update_user_method is set to roles_setter by default" do
    DeviseOam.update_user_method = nil
    DeviseOam.roles_setter = :roles_setter
    assert_equal DeviseOam.update_user_method, :roles_setter
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise_oam-0.0.6 test/device_oam_test.rb
devise_oam-0.0.5 test/device_oam_test.rb
devise_oam-0.0.4 test/device_oam_test.rb
devise_oam-0.0.3 test/device_oam_test.rb