Fixed some broken tests, mainly due to routing issues. Down to 68 failing tests.
This commit is contained in:
parent
e6d72cfc71
commit
a76020108f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user