Sha256: 36587328582d165e89f0a7470cb6d6309ce664f5703388d858cf805622e297ae

Contents?: true

Size: 909 Bytes

Versions: 5

Compression:

Stored size: 909 Bytes

Contents

require 'spec_helper'
require 'generators/doorkeeper/views_generator'

describe Doorkeeper::Generators::ViewsGenerator do
  include GeneratorSpec::TestCase

  tests Doorkeeper::Generators::ViewsGenerator
  destination File.expand_path('tmp/dummy', __dir__)

  before :each do
    prepare_destination
  end

  it 'create all views' do
    run_generator
    assert_file 'app/views/doorkeeper/applications/_form.html.erb'
    assert_file 'app/views/doorkeeper/applications/edit.html.erb'
    assert_file 'app/views/doorkeeper/applications/index.html.erb'
    assert_file 'app/views/doorkeeper/applications/new.html.erb'
    assert_file 'app/views/doorkeeper/applications/show.html.erb'

    assert_file 'app/views/doorkeeper/authorizations/error.html.erb'
    assert_file 'app/views/doorkeeper/authorizations/new.html.erb'

    assert_file 'app/views/doorkeeper/authorized_applications/index.html.erb'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
doorkeeper-5.0.3 spec/generators/views_generator_spec.rb
doorkeeper-5.1.0.rc2 spec/generators/views_generator_spec.rb
doorkeeper-5.1.0.rc1 spec/generators/views_generator_spec.rb
doorkeeper-5.0.2 spec/generators/views_generator_spec.rb
doorkeeper-5.0.1 spec/generators/views_generator_spec.rb