Skip to content
Snippets Groups Projects

Add CLI support for time_frame arrays in metrics

Merged Michał Wielich requested to merge michold-time-frame-array-cli into master
All threads resolved!
@@ -41,7 +41,7 @@
@@ -41,7 +41,7 @@
context 'when option is for a supported and not yet defined metric' do
context 'when option is for a supported and not yet defined metric' do
it 'highlights key words in the name' do
it 'highlights key words in the name' do
expect(option.formatted).to eq({
expect(option.formatted).to eq({
name: "<cyan>time frame</cyan> count of <cyan>unique users</cyan> who triggered a list of events",
name: "<cyan>Time frame</cyan> count of <cyan>unique users</cyan> who triggered a list of events",
value: metrics
value: metrics
})
})
end
end
@@ -51,7 +51,7 @@
@@ -51,7 +51,7 @@
it 'highlights key words in the name' do
it 'highlights key words in the name' do
expect(option.formatted).to eq({
expect(option.formatted).to eq({
name: "<cyan>time frame</cyan> count of <cyan>unique users</cyan> who triggered a list of events " \
name: "<cyan>Time frame</cyan> count of <cyan>unique users</cyan> who triggered a list of events " \
"<cyan>where label/prop/anything</cyan> is...",
"<cyan>where label/prop/anything</cyan> is...",
value: metrics
value: metrics
})
})
@@ -64,7 +64,7 @@
@@ -64,7 +64,7 @@
it 'formats the option as disabled' do
it 'formats the option as disabled' do
expect(option.formatted).to eq({
expect(option.formatted).to eq({
name: "<bright_black>time frame count of unique users who triggered a list of events</bright_black>",
name: "<bright_black>Time frame count of unique users who triggered a list of events</bright_black>",
value: metrics,
value: metrics,
disabled: "<bold><bright_black>(already defined)</bright_black></bold>"
disabled: "<bold><bright_black>(already defined)</bright_black></bold>"
})
})
@@ -75,7 +75,7 @@
@@ -75,7 +75,7 @@
it 'highlights key words in the name' do
it 'highlights key words in the name' do
expect(option.formatted).to eq({
expect(option.formatted).to eq({
name: "<bright_black>time frame count of unique users who triggered " \
name: "<bright_black>Time frame count of unique users who triggered " \
"a list of events where filtered</bright_black>",
"a list of events where filtered</bright_black>",
value: metrics,
value: metrics,
disabled: "<bold><bright_black>(already defined)</bright_black></bold>"
disabled: "<bold><bright_black>(already defined)</bright_black></bold>"
@@ -89,7 +89,7 @@
@@ -89,7 +89,7 @@
it 'formats the option as disabled' do
it 'formats the option as disabled' do
expect(option.formatted).to eq({
expect(option.formatted).to eq({
name: "<bright_black>time frame count of unique users who triggered a list of events</bright_black>",
name: "<bright_black>Time frame count of unique users who triggered a list of events</bright_black>",
value: metrics,
value: metrics,
disabled: "<bold><bright_black>(user unavailable)</bright_black></bold>"
disabled: "<bold><bright_black>(user unavailable)</bright_black></bold>"
})
})
@@ -100,7 +100,7 @@
@@ -100,7 +100,7 @@
it 'highlights key words in the name' do
it 'highlights key words in the name' do
expect(option.formatted).to eq({
expect(option.formatted).to eq({
name: "<bright_black>time frame count of unique users who triggered " \
name: "<bright_black>Time frame count of unique users who triggered " \
"a list of events where filtered</bright_black>",
"a list of events where filtered</bright_black>",
value: metrics,
value: metrics,
disabled: "<bold><bright_black>(user unavailable)</bright_black></bold>"
disabled: "<bold><bright_black>(user unavailable)</bright_black></bold>"
@@ -114,7 +114,7 @@
@@ -114,7 +114,7 @@
it 'highlights key words in the name' do
it 'highlights key words in the name' do
expect(option.formatted).to eq({
expect(option.formatted).to eq({
name: "<cyan>time frame</cyan> count of <cyan>unique values for 'label'</cyan> " \
name: "<cyan>Time frame</cyan> count of <cyan>unique values for 'label'</cyan> " \
"from a list of events occurrences",
"from a list of events occurrences",
value: metrics
value: metrics
})
})
@@ -126,7 +126,7 @@
@@ -126,7 +126,7 @@
it 'highlights key words in the name' do
it 'highlights key words in the name' do
expect(option.formatted).to eq({
expect(option.formatted).to eq({
name: "<cyan>time frame</cyan> count of a list of events occurrences",
name: "<cyan>Time frame</cyan> count of a list of events occurrences",
value: metrics
value: metrics
})
})
end
end
@@ -144,7 +144,7 @@
@@ -144,7 +144,7 @@
it 'highlights key words in the name' do
it 'highlights key words in the name' do
expect(option.formatted).to eq({
expect(option.formatted).to eq({
name: "<cyan>time frame 1/time frame 2</cyan> count of <cyan>unique users</cyan> " \
name: "<cyan>Time frame 1/Time frame 2</cyan> count of <cyan>unique users</cyan> " \
"who triggered a list of events",
"who triggered a list of events",
value: metrics
value: metrics
})
})
Loading