Sha256: ece241a26f5e699cae3aa8682b8f5107452ebefff741c088d9430d0d7cdf4f18
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
require "spec_helper" require "rails" require "mascot-rails" describe Mascot do context "default configuration" do subject{ Mascot.configuration } it "has site" do expect(subject.site.root_path).to eql(Rails.root.join("app/pages")) end it "has Rails.application as parent engine" do expect(subject.parent_engine).to eql(Rails.application) end it "has routes enabled by default" do expect(subject.routes).to be true end end it "prepends Site#root_path to ActionController::Base.view_paths" do expect(ActionController::Base.view_paths.first.to_s).to eql(Mascot.site.root_path.to_s) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mascot-rails-0.1.16 | spec/mascot-rails_spec.rb |