2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

fix tests

This commit is contained in:
Sam Saffron 2013-02-16 12:26:10 +11:00
parent c81d07c44b
commit c95e1b644c

View file

@ -118,13 +118,13 @@ describe MessageBus::Rack::Middleware do
end
it "should get a 200 with html for an authorized user" do
MessageBus.stub(:is_admin_lookup).and_return(lambda{ true })
MessageBus.stub(:is_admin_lookup).and_return(lambda{|env| true })
get "/message-bus/_diagnostics"
last_response.status.should == 200
end
it "should get the script it asks for" do
MessageBus.stub(:is_admin_lookup).and_return(lambda{ true })
MessageBus.stub(:is_admin_lookup).and_return(lambda{|env| true })
get "/message-bus/_diagnostics/assets/message-bus.js"
last_response.status.should == 200
last_response.content_type.should == "text/javascript;"