Sha256: 5f9c5df113d9fb8a272837dd092b5ba1fef1cd02a9d33a869ea255db69c6f8e7
Contents?: true
Size: 629 Bytes
Versions: 70
Compression:
Stored size: 629 Bytes
Contents
require "test_helper" if DEVISE_ORM == :mongoid require "generators/mongoid/devise_generator" class MongoidGeneratorTest < Rails::Generators::TestCase tests Mongoid::Generators::DeviseGenerator destination File.expand_path("../../tmp", __FILE__) setup :prepare_destination test "all files are properly created" do run_generator %w(monster) assert_file "app/models/monster.rb", /devise/ end test "all files are properly deleted" do run_generator %w(monster) run_generator %w(monster), :behavior => :revoke assert_no_file "app/models/monster.rb" end end end
Version data entries
70 entries across 65 versions & 9 rubygems