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

adding support for hash in the size function #489

Merged
merged 1 commit into from
Jul 22, 2015

Conversation

gcmalloc
Copy link
Contributor

No description provided.

@gcmalloc gcmalloc closed this Jul 21, 2015
it { is_expected.to run.with_params([]).and_return(0) }
it { is_expected.to run.with_params(['a']).and_return(1) }
it { is_expected.to run.with_params(['one', 'two', 'three']).and_return(3) }
it { is_expected.to run.with_params(['one', 'two', 'three', 'four']).and_return(4) }

it { is_expected.to run.with_params({}).and_return{0} }
it { is_expected.to run.with_params({'1' => '2'}).and_return{1} }
it { is_expected.to run.with_params({'1' => '2', '4' => '4'}).and_return{2} }
Copy link
Contributor

Choose a reason for hiding this comment

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

all of them should read and_return(0)

@DavidS DavidS reopened this Jul 22, 2015
@DavidS
Copy link
Contributor

DavidS commented Jul 22, 2015

Hi @gcmalloc,

I like this change and it only needs some small changes to get it ship shape. Please use git commit --amend this change so it stays a single commit and force push it to this PR.

Thanks for your time and work!

@gcmalloc
Copy link
Contributor Author

Thanks for the kindness !

DavidS added a commit that referenced this pull request Jul 22, 2015
adding support for hash in the size function
@DavidS DavidS merged commit dca8bdb into puppetlabs:master Jul 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants