Skip to content

Instantly share code, notes, and snippets.

@reinh
Created April 16, 2010 22:22
Show Gist options
  • Save reinh/369047 to your computer and use it in GitHub Desktop.
Save reinh/369047 to your computer and use it in GitHub Desktop.
it "updates the node's reported_at timestamp" do
node = Node.generate(:name => @report_data.host)
Report.create(:report => @report_yaml)
node.reload
time_delta = (node.reported_at - @report_data.time).abs
(time_delta < 1).should be_true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment