mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
Debugging mini_test vs minitest across versions is a waste of time
This commit is contained in:
parent
3d7c7a2c36
commit
d4cca57c0f
1 changed files with 0 additions and 39 deletions
|
@ -88,43 +88,4 @@ describe Rails::Generators::DecoratorGenerator do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "with -t=mini_test" do
|
||||
describe "the generated test" do
|
||||
subject { file("test/decorators/your_model_decorator_test.rb") }
|
||||
|
||||
describe "naming" do
|
||||
before { run_generator %w(YourModel -t=mini_test) }
|
||||
|
||||
it { should contain "class YourModelDecoratorTest < Draper::TestCase" }
|
||||
end
|
||||
|
||||
describe "namespacing" do
|
||||
subject { file("test/decorators/namespace/your_model_decorator_test.rb") }
|
||||
before { run_generator %w(Namespace::YourModel -t=mini_test) }
|
||||
|
||||
it { should contain "class Namespace::YourModelDecoratorTest < Draper::TestCase" }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "with -t=mini_test --spec" do
|
||||
describe "the generated test" do
|
||||
subject { file("test/decorators/your_model_decorator_test.rb") }
|
||||
|
||||
describe "naming" do
|
||||
before { run_generator %w(YourModel -t=mini_test --spec) }
|
||||
|
||||
it { should contain "describe YourModelDecorator" }
|
||||
end
|
||||
|
||||
describe "namespacing" do
|
||||
subject { file("test/decorators/namespace/your_model_decorator_test.rb") }
|
||||
before { run_generator %w(Namespace::YourModel -t=mini_test --spec) }
|
||||
|
||||
it { should contain "describe Namespace::YourModelDecorator" }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue