Permalink
Browse files

Fix rubocop offences

  • Loading branch information...
1 parent 2e28fe2 commit 76e27e99c430fe27e6962f62fe2c5ab8bdad6b3f @mshibuya mshibuya committed Mar 4, 2014
Showing with 6 additions and 6 deletions.
  1. +6 −6 spec/rails_admin/install_generator_spec.rb
@@ -2,24 +2,24 @@
require 'generators/rails_admin/install_generator'
describe RailsAdmin::InstallGenerator, type: :generator do
- destination File.expand_path("../../dummy_app/tmp/generator", __FILE__)
+ destination File.expand_path('../../dummy_app/tmp/generator', __FILE__)
arguments ['admin']
before do
prepare_destination
end
- it "mounts RailsAdmin as Engine and generates RailsAdmin Initializer" do
+ it 'mounts RailsAdmin as Engine and generates RailsAdmin Initializer' do
expect_any_instance_of(generator_class).to receive(:route).
with("mount RailsAdmin::Engine => '/admin', as: 'rails_admin'")
capture(:stdout) do
generator.invoke('install')
end
expect(destination_root).to have_structure{
- directory "config" do
- directory "initializers" do
- file "rails_admin.rb" do
- contains "RailsAdmin.config"
+ directory 'config' do
+ directory 'initializers' do
+ file 'rails_admin.rb' do
+ contains 'RailsAdmin.config'
end
end
end

0 comments on commit 76e27e9

Please sign in to comment.