Sha256: c40624b12846a9199ac3e6744a2dd4aa1be4bd2a535ae1ec9090d62deb0a5d35

Contents?: true

Size: 322 Bytes

Versions: 3

Compression:

Stored size: 322 Bytes

Contents

require 'spec_helper'

describe CallbackTestsController do
  
  it "should automatically include the callback" do
    subject.class.ancestors.should include(RailsLocaleDetection::ControllerMethods)
  end
  
  it "should correctly detect the user locale" do
    get :show
    
    response.body.should eq('fr')
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_locale_detection-2.0.0.pre4 spec/controllers/callback_tests_controller_spec.rb
rails_locale_detection-2.0.0.pre3 spec/controllers/callback_tests_controller_spec.rb
rails_locale_detection-2.0.0.pre2 spec/controllers/callback_tests_controller_spec.rb