Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

`batonize` doesn't create any specs #13

Open
goblin opened this Issue · 2 comments

3 participants

@goblin

As per subject.

Rails' generators usually create specs when they generate things, so I guess batonize should too

@gsandie

I think it's ok that batonize doesn't create any specs. There is nothing in baton that requires any specific testing framework, so we probably shouldn't be dictating any through batonize. Leaving out test directories and specs gives plugin developers the freedom to select any testing framework they want to, or none if they don't want tests.

@wjlroe

Rails hedges its bets on this one. In the old days, you used to have to run rails generate rspec_controller or similar. These days, Rails has a test generator setting:

config.generators do |g|
  g.test_framework :rspec
end

Batonize should absolutely create tests for the simple reason that it allows us to help people understand how to test something complex like a baton plugin. I vote we simply create some rspecs unless the user specifies, with a command line option to generate minitest or Test::Unit instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.