Sha256: 5f120438b0308b620408613a70cc2ff2ff6390646e885ea7b59dd991a13493df

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

require 'spec_helper'

describe 'Configuration' do
  before { Forem::Engine.user_class = nil }

  it "user_class must be set" do
    config = lambda { Forem::Engine.user_class }
    error = "Please define Forem::Engine.user_class" +
            " in config/initializers/forem.rb"
    config.should raise_error(Forem::ConfigurationNotSet, error)
    Forem::Engine.user_class = User
    config.should_not raise_error(Forem::ConfigurationNotSet)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prusswan-forem-0.0.2 spec/configuration_spec.rb