Sha256: 9e29b3e66c65c33be3c76577165e3c3b90fec2793fe699d4a875106bf608fbf6

Contents?: true

Size: 940 Bytes

Versions: 18

Compression:

Stored size: 940 Bytes

Contents

# frozen_string_literal: true

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

18 entries across 18 versions & 1 rubygems

Version Path
doorkeeper-5.1.2 spec/generators/views_generator_spec.rb
doorkeeper-5.2.6 spec/generators/views_generator_spec.rb
doorkeeper-5.3.3 spec/generators/views_generator_spec.rb
doorkeeper-5.1.1 spec/generators/views_generator_spec.rb
doorkeeper-5.2.5 spec/generators/views_generator_spec.rb
doorkeeper-5.3.2 spec/generators/views_generator_spec.rb
doorkeeper-5.4.0.rc1 spec/generators/views_generator_spec.rb
doorkeeper-5.2.4 spec/generators/views_generator_spec.rb
doorkeeper-5.3.1 spec/generators/views_generator_spec.rb
doorkeeper-5.3.0 spec/generators/views_generator_spec.rb
doorkeeper-5.2.3 spec/generators/views_generator_spec.rb
doorkeeper-5.2.2 spec/generators/views_generator_spec.rb
doorkeeper-5.2.1 spec/generators/views_generator_spec.rb
doorkeeper-5.2.0 spec/generators/views_generator_spec.rb
doorkeeper-5.2.0.rc3 spec/generators/views_generator_spec.rb
doorkeeper-5.2.0.rc2 spec/generators/views_generator_spec.rb
doorkeeper-5.2.0.rc1 spec/generators/views_generator_spec.rb
doorkeeper-5.1.0 spec/generators/views_generator_spec.rb