spec/handler/go_squared_spec.rb in rack-tracker-0.3.0 vs spec/handler/go_squared_spec.rb in rack-tracker-0.4.0

- old
+ new

@@ -12,11 +12,11 @@ describe "with events" do describe "visitor name" do def env {'tracker' => { 'go_squared' => [ - Rack::Tracker::GoSquared::VisitorName.new(name: "John Doe") + { 'class_name' => 'VisitorName', 'name' => 'John Doe' } ] }} end subject { described_class.new(env, tracker: '12345').render } @@ -28,10 +28,10 @@ describe "visitor details" do def env {'tracker' => { 'go_squared' => [ - Rack::Tracker::GoSquared::VisitorInfo.new(age: 35, favorite_food: 'pizza') + { 'class_name' => 'VisitorInfo', 'age' => 35, 'favorite_food' => 'pizza' } ] }} end subject { described_class.new(env, tracker: '12345').render }