Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It should be possible to run every spec individually #1475

Merged
merged 1 commit into from
Dec 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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 }
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 }
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
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
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
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
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
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
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
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
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
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
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
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"
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
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
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"