Skip to content

Commit

Permalink
Allows to run these specs individually
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobm committed Nov 29, 2019
1 parent 5a74e1c commit dfa64d7
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 28 deletions.
2 changes: 1 addition & 1 deletion spec/generators/assets/javascripts_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"
require "generators/administrate/assets/javascripts_generator"
require "support/generator_spec_helpers"
require "generators/administrate/assets/javascripts_generator"

describe Administrate::Generators::Assets::JavascriptsGenerator, :generator do
describe "administrate:assets:javascripts" do
Expand Down
2 changes: 1 addition & 1 deletion spec/generators/assets/stylesheets_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"
require "generators/administrate/assets/stylesheets_generator"
require "support/generator_spec_helpers"
require "generators/administrate/assets/stylesheets_generator"

describe Administrate::Generators::Assets::StylesheetsGenerator, :generator do
describe "administrate:assets:stylesheets" do
Expand Down
2 changes: 1 addition & 1 deletion spec/generators/assets_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"
require "generators/administrate/assets/assets_generator"
require "support/generator_spec_helpers"
require "generators/administrate/assets/assets_generator"

describe Administrate::Generators::AssetsGenerator, :generator do
describe "administrate:assets" do
Expand Down
4 changes: 2 additions & 2 deletions spec/generators/install_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "rails_helper"
require "generators/administrate/install/install_generator"
require "support/generator_spec_helpers"
require "support/constant_helpers"
require "support/generator_spec_helpers"
require "generators/administrate/install/install_generator"

describe Administrate::Generators::InstallGenerator, :generator do
after { reset_routes }
Expand Down
4 changes: 2 additions & 2 deletions spec/generators/routes_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "rails_helper"
require "generators/administrate/routes/routes_generator"
require "support/generator_spec_helpers"
require "support/constant_helpers"
require "support/generator_spec_helpers"
require "generators/administrate/routes/routes_generator"

describe Administrate::Generators::RoutesGenerator, :generator do
before { stub_generator_dependencies }
Expand Down
3 changes: 1 addition & 2 deletions spec/generators/views/edit_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "spec_helper"
require "generators/administrate/views/edit_generator"
require "support/generator_spec_helpers"
require "generators/administrate/views/edit_generator"

describe Administrate::Generators::Views::EditGenerator, :generator do
describe "administrate:views:edit" do
Expand Down
2 changes: 1 addition & 1 deletion spec/generators/views/field_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"
require "generators/administrate/views/field_generator"
require "support/generator_spec_helpers"
require "generators/administrate/views/field_generator"

describe Administrate::Generators::Views::FieldGenerator, :generator do
context "for an existing field type" do
Expand Down
3 changes: 1 addition & 2 deletions spec/generators/views/form_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "spec_helper"
require "generators/administrate/views/form_generator"
require "support/generator_spec_helpers"
require "generators/administrate/views/form_generator"

describe Administrate::Generators::Views::FormGenerator, :generator do
describe "administrate:views:form" do
Expand Down
3 changes: 1 addition & 2 deletions spec/generators/views/index_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "spec_helper"
require "generators/administrate/views/index_generator"
require "support/generator_spec_helpers"
require "generators/administrate/views/index_generator"

describe Administrate::Generators::Views::IndexGenerator, :generator do
describe "administrate:views:index" do
Expand Down
2 changes: 1 addition & 1 deletion spec/generators/views/layout_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"
require "generators/administrate/views/layout_generator"
require "support/generator_spec_helpers"
require "generators/administrate/views/layout_generator"

describe Administrate::Generators::Views::LayoutGenerator, :generator do
describe "administrate:views:layout" do
Expand Down
3 changes: 1 addition & 2 deletions spec/generators/views/navigation_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "spec_helper"
require "generators/administrate/views/navigation_generator"
require "support/generator_spec_helpers"
require "generators/administrate/views/navigation_generator"

describe Administrate::Generators::Views::NavigationGenerator, :generator do
describe "administrate:views:navigation" do
Expand Down
3 changes: 1 addition & 2 deletions spec/generators/views/new_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "spec_helper"
require "generators/administrate/views/new_generator"
require "support/generator_spec_helpers"
require "generators/administrate/views/new_generator"

describe Administrate::Generators::Views::NewGenerator, :generator do
describe "administrate:views:new" do
Expand Down
3 changes: 1 addition & 2 deletions spec/generators/views/show_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "spec_helper"
require "generators/administrate/views/show_generator"
require "support/generator_spec_helpers"
require "generators/administrate/views/show_generator"

describe Administrate::Generators::Views::ShowGenerator, :generator do
describe "administrate:views:show" do
Expand Down
2 changes: 1 addition & 1 deletion spec/generators/views_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"
require "generators/administrate/views/views_generator"
require "support/generator_spec_helpers"
require "generators/administrate/views/views_generator"

describe Administrate::Generators::ViewsGenerator, :generator do
describe "administrate:views resource" do
Expand Down
1 change: 1 addition & 0 deletions spec/lib/administrate/order_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "active_record"
require "administrate/order"

describe Administrate::Order do
Expand Down
1 change: 1 addition & 0 deletions spec/lib/fields/deferred_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "administrate/field/deferred"
require "administrate/field/belongs_to"
require "administrate/field/string"

describe Administrate::Field::Deferred do
Expand Down
1 change: 1 addition & 0 deletions spec/lib/fields/has_many_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "rails_helper"
require "administrate/field/has_many"
require "support/constant_helpers"
require "support/mock_relation"
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/pages/form_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "administrate/page/form"
require "rails_helper"

describe Administrate::Page::Form do
describe "#page_title" do
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/pages/show_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "administrate/page/show"
require "rails_helper"

describe Administrate::Page::Show do
describe "#page_title" do
Expand Down
4 changes: 0 additions & 4 deletions spec/lib/pages/table_spec.rb

This file was deleted.

1 change: 1 addition & 0 deletions spec/support/generator_spec_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require "rails_helper"
require "ammeter/rspec/generator/example"
require "ammeter/rspec/generator/matchers"
require "ammeter/init"
Expand Down

0 comments on commit dfa64d7

Please sign in to comment.