Sha256: 7116119caf866e370ebfc7c91732eb830e850d53c0bca0fd77e41b208d1a2f3b

Contents?: true

Size: 365 Bytes

Versions: 10

Compression:

Stored size: 365 Bytes

Contents

require 'spec_helper'

describe DirectoryController do
  it 'show action should render show template' do
    Locale.stubs(:find).returns(Locale.new :coordinates => [], :slug => 'foo')
    Locale.stubs(:us).returns([Locale.find])
    Locale.any_instance.stubs(:children).returns([])
    get :show, :slug => 'foo'
    response.should render_template(:show)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
campfire_logic-2.0.7 spec/controllers/directory_controller_spec.rb
campfire_logic-2.0.6 spec/controllers/directory_controller_spec.rb
campfire_logic-2.0.5 spec/controllers/directory_controller_spec.rb
campfire_logic-2.0.4 spec/controllers/directory_controller_spec.rb
campfire_logic-2.0.3 spec/controllers/directory_controller_spec.rb
campfire_logic-2.0.2 spec/controllers/directory_controller_spec.rb
campfire_logic-2.0.1 spec/controllers/directory_controller_spec.rb
campfire_logic-2.0.0 spec/controllers/directory_controller_spec.rb
campfire_logic-1.2.1 spec/controllers/directory_controller_spec.rb
campfire_logic-1.2.0 spec/controllers/directory_controller_spec.rb