Skip to content

Commit

Permalink
whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
imajes committed May 15, 2012
1 parent 2b4d6bd commit e64321b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions pub/fnordmetric.js
Expand Up @@ -83,7 +83,7 @@ var FnordMetric = (function(){
}

function formatPercentValue(value){
return value + '%';
return value + '%';
}

function formatGaugeValue(gauge_key, value){
Expand Down Expand Up @@ -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
};
Expand Down Expand Up @@ -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"])
Expand Down
16 changes: 8 additions & 8 deletions spec/app_spec.rb
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e64321b

Please sign in to comment.