Comments (4)
@lavahot done :)
from rspec-its.
Apologies for the long time taken to come back to you on this, to fix this you'd have to add a way to escape the dot for people using long string keys like this.
from rspec-its.
This is actually a breaking bug for some of my tests. Any chance you can submit a pull request, @walterdolce ?
from rspec-its.
It's not really a fix. It's actually a new "feature" as my PR above adds the ability to define a split_attribute_by
option to define how to split attribute names.
Then, within InSpec I do something like this:
describe parse_config_file('/etc/beaver/beaver.conf', {
assignment_regex: /^\s*([^:]*?)\s*:\s*(.*?)\s*$/,
comment_character: '#',
split_attribute_by: '#' // skips splitting by dot
}) do
its('beaver') {
should include('foo' => 'baz')
}
its('/var/log/apache2/access.log') {
should include('bar' => 'baz')
}
end
from rspec-its.
Related Issues (20)
- Option to deprecate `should` and `should_not` HOT 3
- The use of doubles or partial doubles from rspec-mocks outside of the per-test lifecycle is not supported. HOT 11
- Test failing due to change in RSpec's execution_result method HOT 2
- RSpec 3 is being released tomorrow HOT 1
- Accepting method arguments HOT 15
- It's not possible to focus on an `its` assertion. HOT 12
- 'its' for expecting exceptions HOT 2
- deep hash support HOT 3
- Should use `Object#public_send` instead of `Object#send`. HOT 16
- described_class is changed when using its HOT 1
- Possible to mark "its" examples as pending? HOT 1
- are_expected undefined HOT 3
- Please update to compatible with RSpec 3.2 HOT 2
- Link to documentation from Rubygems is wrong HOT 8
- its against BasicObject fails to generate description HOT 1
- its([:attr]) has the proper value, its(:attr) does not HOT 1
- When requiring the Ruby's timeout library I can no longer retrieve a nested attribute named timeout on an OpenStruct HOT 3
- irb: warn: can't alias context from irb_context. HOT 3
- Is using `its` still recommended? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspec-its.