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

Don't resolve send calls with dot-notation #162

Merged
merged 4 commits into from
Oct 27, 2015
Merged

Don't resolve send calls with dot-notation #162

merged 4 commits into from
Oct 27, 2015

Conversation

arlimus
Copy link
Contributor

@arlimus arlimus commented Oct 27, 2015

Also extend json+yaml+csv tests.

Since #its has its(pun) own way of handling calls with a dot-notation, the full call is never passed to the resource. For example:

```ruby
describe json('file') do
  its('a.b.c') { should eq 123 }
end
```

This is resolved to calling `json('file').a.b.c` and thus doesnt work as an intended `json('file').send('a.b.c'). For now use
regular its-behavior of calling `json('file').params ...  its(%w{a b c}) { should ... }`.

Its' behavior must be improved.
@chef-delivery
Copy link
Contributor

This PR has passed 'Verify' and is ready for review and approval!
Use: '@delivery approve' when code review is complete.

@chris-rock
Copy link
Contributor

@delivery approve

chef-delivery added a commit that referenced this pull request Oct 27, 2015
Merged change 68a5ab3f-f9c5-482c-a61e-2d5776f8931f

From review branch json into master

Signed-off-by: chartmann <chartmann@chef.io>
@chef-delivery chef-delivery merged commit a8cdb53 into master Oct 27, 2015
@chef-delivery
Copy link
Contributor

Change: 68a5ab3f-f9c5-482c-a61e-2d5776f8931f approved by: @chris-rock

@chef-delivery chef-delivery deleted the json branch October 27, 2015 20:32
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

3 participants