Permalink
Browse files

Removing noise from test output

  • Loading branch information...
1 parent d4fc47a commit d520fd0f373defab22d516aefde9aa444c6eb4ce @maxfliri maxfliri committed Feb 6, 2013
@@ -90,7 +90,6 @@ def register_ga_request(options, response)
RSpec::Matchers.define :be_for_collector do |expected|
match do |actual|
- p actual
actual[:envelope][:collector] == expected
end
end
View
@@ -5,6 +5,8 @@
require "json"
+Datainsight::Logging.configure(env: :test)
+
def load_json(filename)
JSON.parse(load_data(filename))
end
@@ -37,14 +37,14 @@
it "should collect multiple events for a slug in a single message" do
ga_responses = [
build_raw_ga_engagement_response(
- {slug: "slug_01", event: "entry"},
- {slug: "slug_01", event: "success"},
- {slug: "slug_02", event: "entry"},
+ {slug: "slug_01", event: "Entry"},
+ {slug: "slug_01", event: "Success"},
+ {slug: "slug_02", event: "Entry"},
),
build_raw_ga_engagement_response(
- {slug: "slug_02", event: "success"},
- {slug: "slug_03", event: "entry"},
- {slug: "slug_03", event: "success"},
+ {slug: "slug_02", event: "Success"},
+ {slug: "slug_03", event: "Entry"},
+ {slug: "slug_03", event: "Success"},
)
]
@@ -70,7 +70,7 @@ def build_raw_ga_engagement_response(*row_data)
[
d[:format] || "default_format",
d[:slug] || "default_slug_#{index}",
- d[:event] || "default_event",
+ d[:event] || "Entry",
d[:count] || rand(10000).to_s
]
end

0 comments on commit d520fd0

Please sign in to comment.