Skip to content

Commit

Permalink
adjust specs from #24 to be compatible with new event api
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
klausmeyer authored and jordansissel committed May 23, 2016
1 parent 2c1e8cb commit b775ca4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/filters/json_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@
end

it "keeps the source field" do
expect(event["message"]).to eq message
expect(event.get("message")).to eq message
end

it "adds a parse-error tag" do
expect(event["tags"]).to eq ["_jsonparsefailure"]
expect(event.get("tags")).to eq ["_jsonparsefailure"]
end
end

Expand All @@ -214,11 +214,11 @@
end

it "keeps the source field" do
expect(event["message"]).to eq message
expect(event.get("message")).to eq message
end

it "does not add a parse-error tag" do
expect(event["tags"]).to be_nil
expect(event.get("tags")).to be_nil
end
end
end
Expand Down

0 comments on commit b775ca4

Please sign in to comment.