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

Parse all options before calling the step files generation #167

Merged
merged 2 commits into from
Sep 17, 2014
Merged

Parse all options before calling the step files generation #167

merged 2 commits into from
Sep 17, 2014

Conversation

sgarciac
Copy link
Contributor

The command line options should be taken into account by the generator, in particular the -f option. As it is, the generator is called before setting the parameters, ignoring all of them.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.17%) when pulling 6d5949d on sgarciac:master into 4d771d9 on codegram:master.

@josepjaume
Copy link
Contributor

Thanks, well spotted!

Could you add a test for it in test/cli_test.rb though?

it "honors the #{feature_path_opt} option" do
config = Spinach::Config.new
Spinach.stubs(:config).returns(config)
cli = Spinach::Cli.new([feature_path_opt,"custom_path", generate_opt])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [82/80]
Space missing after comma.

@sgarciac
Copy link
Contributor Author

@josepjaume done

@josepjaume
Copy link
Contributor

Thanks! Nice job :)

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.13%) when pulling 309ddce on sgarciac:master into 4d771d9 on codegram:master.

josepjaume added a commit that referenced this pull request Sep 17, 2014
Parse all options before calling the step files generation
@josepjaume josepjaume merged commit 7b6bfe4 into codegram:master Sep 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants