Fixed some broken tests, mainly due to routing issues. Down to 68 failing tests.

This commit is contained in:
Mario Visic 2011-12-06 21:42:41 +08:00
parent e6d72cfc71
commit a76020108f
2 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,7 @@ describe Locomotive::ApiContentsController do
describe 'API enabled' do
before(:each) do
ContentType.any_instance.stubs(:api_enabled?).returns(true)
Locomotive::ContentType.any_instance.stubs(:api_enabled?).returns(true)
end
it 'saves a content' do

View File

@ -2,6 +2,8 @@ require 'spec_helper'
class MyController < ActionController::Base
include Locomotive::Routing::SiteDispatcher
include Locomotive::Engine.routes.url_helpers # Required for loading engine routes
end
describe Locomotive::Routing::SiteDispatcher do