Permalink
Browse files

whitespace fixes

  • Loading branch information...
1 parent 2b4d6bd commit e64321b510e55354d9839447743ed07ce5893c82 @imajes committed May 15, 2012
Showing with 15 additions and 15 deletions.
  1. +7 −7 pub/fnordmetric.js
  2. +8 −8 spec/app_spec.rb
View
@@ -83,7 +83,7 @@ var FnordMetric = (function(){
}
function formatPercentValue(value){
- return value + '%';
+ return value + '%';
}
function formatGaugeValue(gauge_key, value){
@@ -191,17 +191,17 @@ var FnordMetric = (function(){
'marginBottom': 20,
'overflow': 'hidden'
});
-
+
var container = $('<div></div>')
.addClass('html_container')
.html(opts.html);
-
+
opts.elem.append(container);
}
-
+
function updateValues(opts){}
function updatedisplay(opts, diff_factor){}
-
+
return {
render: render
};
@@ -995,8 +995,8 @@ var FnordMetric = (function(){
).append(
$('<span class="history"></span>').html('history')
.click(function(){
- setCheckboxesCheckedState(true, false);
- updateEventFilter();
+ setCheckboxesCheckedState(true, false);
+ updateEventFilter();
loadEventHistory({session_key: session_data["session_key"]});
})
).attr('data-session', session_data["session_key"])
View
@@ -30,9 +30,9 @@ def app
end
it "should redirect to the first namespace" do
- get "/"
- last_response.status.should == 302
- last_response.location.should == "http://example.org/foospace"
+ get "/"
+ last_response.status.should == 302
+ last_response.location.should == "http://example.org/foospace"
end
it "should render the namespace" do
@@ -46,8 +46,8 @@ def app
widget 'Blubb', nil
}
}, @opts)
- get "/foospace"
- last_response.status.should == 200
+ get "/foospace"
+ last_response.status.should == 200
last_response.body.should include("Blubb")
end
@@ -410,9 +410,9 @@ def create_event(event_id, event_data)
it "should return 400 if no type is provided" do
pending("fix this")
- post "/events", :fnord => "foobar"
- last_response.status.should == 400
- last_response.body.should == "please specify the event_type"
+ post "/events", :fnord => "foobar"
+ last_response.status.should == 400
+ last_response.body.should == "please specify the event_type"
end
end

0 comments on commit e64321b

Please sign in to comment.