spec/rackamole/store/mongo_db_spec.rb in rackamole-0.2.6 vs spec/rackamole/store/mongo_db_spec.rb in rackamole-0.2.7

- old
+ new

@@ -21,11 +21,17 @@ @args[:type] = Rackamole.feature @args[:app_name] = "app" @args[:environment] = :test @args[:perf_issue] = false @args[:ip] = "1.1.1.1" - @args[:browser] = "Ibrowse" + @args[:browser] = OrderedHash.new + @args[:browser][:name] = "Ibrowse" + @args[:browser][:version] = "1.X" + @args[:machine] = OrderedHash.new + @args[:machine][:platform] = "Blee" + @args[:machine][:os] = "Windoze" + @args[:machine][:version] = "10.0" @args[:user_id] = 100 @args[:user_name] = "Fernand" @args[:request_time] = 1.0 @args[:url] = "http://test_me/" @args[:path] = "/fred" @@ -50,10 +56,14 @@ log.should_not be_nil log['typ'].should == Rackamole.feature log['fid'].should_not be_nil log['par'].should == { 'blee' => 'duh'.to_json } log['ip'].should == '1.1.1.1' - log['bro'].should == 'Ibrowse' + log['bro']['name'].should == "Ibrowse" + log['bro']['version'].should == "1.X" + log['mac']['platform'].should == "Blee" + log['mac']['os'].should == "Windoze" + log['mac']['version'].should == "10.0" log['url'].should == 'http://test_me/' log['met'].should == 'GET' log['ses'].should == { 'fred' => '10' } log['uid'].should_not be_nil log['rti'].should == 1.0 \ No newline at end of file